Ocaml
The ocaml icon represents the OCaml programming language, which is a multi-paradigm language that supports functional, imperative, and object-oriented programming.
Exports at 24 × 24 px
Code
Ocaml in your framework
In any framework. Customize it above, and the code follows.
export const OcamlIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 128 128" {...props}>
<defs><linearGradient id="SVGf5SUfdzc" x1="82.925" x2="82.925" y1="97.718" y2="97.9" gradientTransform="translate(0 8.224)scale(.77317)" gradientUnits="userSpaceOnUse"><stop offset="0" stopColor="#f29100"/><stop offset="1" stopColor="#ec670f"/></linearGradient><linearGradient id="SVG1LOc8bZc" x1="61.276" x2="61.276" y1="98.981" y2="144.277" gradientTransform="translate(0 8.224)scale(.77317)" gradientUnits="userSpaceOnUse"><stop offset="0" stopColor="#f29100"/><stop offset="1" stopColor="#ec670f"/></linearGradient><linearGradient id="SVGwCUsbeHz" x1="82.781" x2="82.781" y1="0" y2="144.245" gradientTransform="translate(0 8.224)scale(.77317)" gradientUnits="userSpaceOnUse"><stop offset="0" stopColor="#f29100"/><stop offset="1" stopColor="#ec670f"/></linearGradient><linearGradient id="SVGPDRQSdfP" x1="22.871" x2="22.871" y1="92.114" y2="143.249" gradientTransform="translate(0 8.224)scale(.77317)" gradientUnits="userSpaceOnUse"><stop offset="0" stopColor="#f29100"/><stop offset="1" stopColor="#ec670f"/></linearGradient></defs><path fill="#484444" d="m64.11 83.918l.019-.047c-.027-.117-.035-.148-.02.047zm0 0"/><path fill="url(#SVGf5SUfdzc)" d="m64.11 83.918l.019-.047c-.027-.117-.035-.148-.02.047zm0 0"/><path fill="url(#SVG1LOc8bZc)" d="M64.969 115.441c-.45-.937-1.016-2.773-1.39-3.582c-.356-.754-1.434-2.722-1.974-3.355c-1.175-1.375-1.453-1.477-1.796-3.215c-.602-3.023-2.192-8.508-4.067-12.293c-.969-1.953-2.578-3.594-4.05-5.012c-1.286-1.242-4.184-3.332-4.692-3.226c-4.734.945-6.203 5.59-8.434 9.27c-1.23 2.034-2.535 3.765-3.507 5.929c-.899 1.992-.817 4.195-2.352 5.902c-1.578 1.758-2.602 3.625-3.371 5.891c-.148.43-.563 4.953-1.016 6.027l7.04-.496c6.558.45 4.663 2.965 14.902 2.414l16.164-.5c-.504-1.48-1.196-3.195-1.461-3.754zm0 0"/><path fill="url(#SVGwCUsbeHz)" d="M111.875 8.223H16.133C7.227 8.227.008 15.445.008 24.352v35.183c2.308-.836 5.625-5.742 6.664-6.937c1.82-2.086 2.148-4.75 3.055-6.426c2.066-3.82 2.421-6.445 7.109-6.445c2.187 0 3.055.503 4.535 2.488c1.027 1.379 2.809 3.93 3.637 5.633c.96 1.968 2.527 4.629 3.215 5.164c.511.402 1.015.699 1.488.875c.758.289 1.39-.235 1.898-.64c.649-.52.93-1.571 1.532-2.977c.867-2.028 1.808-4.458 2.347-5.31c.93-1.464 1.246-3.202 2.25-4.046c1.485-1.242 3.414-1.328 3.95-1.434c2.976-.59 4.328 1.434 5.792 2.743c.961.855 2.27 2.582 3.204 4.89c.726 1.809 1.652 3.48 2.039 4.524c.375 1.004 1.3 2.62 1.847 4.55c.496 1.758 1.828 3.106 2.332 3.938c0 0 .774 2.168 5.48 4.152c1.02.43 3.083 1.13 4.313 1.575c2.047.746 4.028.648 6.551.347c1.797 0 2.774-2.605 3.59-4.691c.484-1.23.945-4.766 1.262-5.766c.304-.976-.41-1.73.199-2.586c.71-1 1.133-1.054 1.543-2.355c.883-2.785 5.984-2.926 8.847-2.926c2.399 0 2.086 2.32 6.141 1.527c2.32-.457 4.559.297 7.024.95c2.074.55 4.023 1.175 5.195 2.546c.758.887 2.633 5.325.719 5.516c.183.223.32.629.664.852c-.426 1.675-2.282.48-3.309.265c-1.39-.285-2.367.043-3.726.645c-2.32 1.035-5.715.914-7.739 2.597c-1.715 1.43-1.71 4.614-2.511 6.399c0 0-2.223 5.719-7.075 9.215c-1.242.898-3.668 3.054-8.953 3.87c-2.367.368-4.586.395-7.02.274l-3.511-.133c-.695-.003-3.063-.082-2.945.145l-.266.656c.043.219.129.754.152.887c.098.527.125.95.145 1.437c.035 1-.082 2.043-.031 3.055c.105 2.094.882 4.008.98 6.121c.11 2.356 1.274 4.844 2.399 6.77c.43.73 1.078.812 1.363 1.715c.332 1.03.02 2.129.18 3.23c.632 4.266 1.855 8.73 3.785 12.582a1 1 0 0 0 .043.094c2.375-.395 4.754-1.25 7.84-1.707c5.652-.836 13.519-.406 18.57-.88c12.781-1.198 19.719 5.243 31.203 2.602V24.352c-.004-8.907-7.223-16.13-16.129-16.13zM64.109 83.918c-.015-.195-.007-.168.02-.047zm0 0"/><path fill="url(#SVGPDRQSdfP)" d="M29.516 98.727c.89-1.946 1.406-4.165 2.144-6.157c.711-1.906 1.817-4.61 3.7-5.57c-.227-.27-3.938-.39-4.93-.492l-3.2-.453l-6.164-1.27c-1.199-.289-5.187-1.703-6.054-2.101c-2.032-.938-3.383-3.48-4.969-3.22c-1.016.165-2.012.513-2.633 1.536c-.515.836-.691 2.27-1.047 3.23c-.414 1.118-1.129 2.16-1.754 3.223c-1.152 1.95-3.222 3.715-4.113 5.617c-.18.39-.34.828-.488 1.285v21.735l3.347.722c8.993 2.403 11.188 2.606 20.008 1.594l.828-.11c.672-1.405 1.196-6.187 1.633-7.667c.34-1.137.809-2.04.988-3.2c.168-1.1-.015-2.148-.113-3.152c-.242-2.504 1.828-3.398 2.82-5.55zm0 0"/>
</svg>
);Other libraries
Ocaml in 4 more libraries
Each library draws it its own way. Open one to compare.
Devicon
More like it
Icons that share its tags, in the same style.
Search Devicon
Skip the copy and paste. With Pro, your AI agent finds and installs any Devicon icon from a prompt.
Get ProTags
Browse by tag
Ocaml is tagged technology, programming, software development and 1 more. Related tags follow; each opens its icons from every library.
Pricing
Devicon MCP, with Pro
Ask for Ocaml or any of 1,026 Devicon icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Ocaml icon means and where it's used, then how to install, style, label and license it.
The ocaml icon represents the OCaml programming language, which is a multi-paradigm language that supports functional, imperative, and object-oriented programming. OCaml is a popular language for building software applications, particularly in the areas of compiler construction, programming languages, and formal verification.
The ocaml icon is commonly used in programming and software development applications. It's often used on programming websites, social media, and marketing materials.
From a UX perspective, the ocaml icon communicates a sense of technical expertise and programming capabilities. It helps users understand that an application or tool is related to OCaml development or programming.
Ocaml is one of 1,026 icons in Devicon, made by konpa and released under MIT. It is drawn on a 128 × 128 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds OcamlIcon to components/icons/devicon-ocaml.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed OcamlIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Ocaml icon, or any of 1,026 Devicon icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 128 × 128 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Ocaml", so screen readers say what it does.
Yes. OcamlIcon passes every SVG prop to the svg element, so <OcamlIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Devicon, konpa and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
4 other libraries draw an icon called Ocaml. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are technology, programming, software development and functional programming. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Ocaml in another set.
4.9 out of 5 from 150+ developers
Install Ocaml from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro