#4C0F5E#4C0F5E

#4C0F5E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.135 H 316.9°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#4C0F5E
RGBrgb(76, 15, 94)
HSLhsl(286, 72%, 21%)
HSVhsv(286, 84%, 37%)
CMYKcmyk(19.1%, 84%, 0%, 63.1%)
CIE-LABlab(18.74, 39.71, -32.78)
CIE-LCHlch(18.74, 51.49, 320.47°)
OKLaboklab(31.73% 0.0989 -0.0924)
OKLCHoklch(31.73% 0.135 316.9)
XYZxyz(5.1714, 2.6865, 10.8337)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F5E #215E0F
analogous
#250F5E #4C0F5E #5E0F49
triadic
#4C0F5E #5E4C0F #0F5E4C
tetradic
#4C0F5E #5E250F #215E0F #0F495E
square
#4C0F5E #5E250F #215E0F #0F495E
split-complementary
#4C0F5E #495E0F #0F5E25
monochromatic
#15041A #210729 #4C0F5E #771793 #A120C8

Accessibility & contrast

On white

13.66
#4C0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C0F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F5E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F5E#FFFFFF#000000##FFFFFF
##4C0F5E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#102F5C
Tritanopia (blue-blind)
#4B2137
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c0f5e;
/* rgb */ color: rgb(76, 15, 94);
/* oklch */ color: oklch(31.7% 0.135 316.9);
Tailwind
colors: {
  custom: {
    50: '#81568c',
    500: '#4c0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f5e;
$custom-light: #81568c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f5e",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 286.329,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31728,
    "c": 0.13529,
    "h": 316.9
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#4C0F5E
secondary
#499731
accent
#EF3962
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C0F5E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4C0F5E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva