#4C0CCC
Closest named color: Violet Blue (#510AC9). oklch(42.6% 0.245 283.4), rgb(76, 12, 204).
Aa
White text reads best on this color (9.40:1).
About this color
#4C0CCC is a dark, vivid purple. In OKLCH its lightness is 43%, its chroma 0.245 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Violet Blue (#510AC9), ΔE 0.011 away. White text reads best on it, at 9.40:1.
| Hue family | Purples |
| Lightness | dark (43%) |
| Chroma | vivid (0.245) |
| Temperature | cool |
| Nearest name | Violet Blue (#510AC9) |
| Black text | 2.23:1 |
| White text | 9.40:1 |
Values
| HEX | #4C0CCC |
| RGB | rgb(76, 12, 204) |
| HSL | hsl(260, 89%, 42%) |
| OKLCH | oklch(42.6% 0.245 283.4) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #4C0CCC | 9.40:1 | AAA | Lc -94.1 | Preferred for body text |
| Black text on #4C0CCC | 2.23:1 | Fails | Lc 14.4 | Not readable |
| #4C0CCC text on white | 9.40:1 | AAA | Lc 89.6 | Fine for body text |
| #4C0CCC text on black | 2.23:1 | Fails | Lc -12.6 | Not readable |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 800.
-
Step 50
50
#F4F4FF
oklch(97% 0.015 286.1)
-
Step 100
100
#E6E8FF
oklch(93.6% 0.031 281.8)
-
Step 200
200
#D3D5FF
oklch(88.5% 0.058 283)
-
Step 300
300
#B8B8FF
oklch(80.8% 0.1 283.9)
-
Step 400
400
#9590FF
oklch(70.6% 0.159 283.6)
-
Step 500
500
#7E6FFF
oklch(63% 0.206 283.5)
-
Step 600
600
#6B46FF
oklch(55.5% 0.255 283.5)
-
Step 700
700
#5E00FA
oklch(49.1% 0.29 283.4)
-
Step 800
800 (this color)
#4C0CCC
oklch(42.6% 0.245 283.4)
-
Step 900
900
#3D1EA0
oklch(37.6% 0.191 283.3)
-
Step 950
950
#23155E
oklch(27% 0.122 283.4)
#4C0CCC with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #004BD1 | 0.102 |
| Deuteranopia (no green cones) | #0040C9 | 0.089 |
| Tritanopia (no blue cones) | #005378 | 0.194 |
| Achromatopsia (no color) | #464646 | 0.247 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #4C0CCC
#4C0CCC
oklch(42.6% 0.245 283.4)
- #585000
#585000
oklch(42.6% 0.089 102.9)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #4C0CCC, closest first.
No curated palette has a color within ΔE 0.04 of #4C0CCC.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Violet Blue #510AC9 ΔE 0.011
- Purple Blue #5D21D0 ΔE 0.040
- Majorelle Blue #3F37C9 ΔE 0.050
- Indigo Blue #3A18B1 ΔE 0.052
- Chrysanthemum #560BAD ΔE 0.057
- Blurple #5539CC ΔE 0.058
- Imperial Purple #480CA8 ΔE 0.060
- Blue Purple #5A06EF ΔE 0.060
Use #4C0CCC in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.