#4C0E5F#4C0E5F

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

Color values

HEX#4C0E5F
RGBrgb(76, 14, 95)
HSLhsl(286, 74%, 21%)
HSVhsv(286, 85%, 37%)
CMYKcmyk(20%, 85.3%, 0%, 62.7%)
CIE-LABlab(18.70, 40.27, -33.51)
CIE-LCHlch(18.70, 52.39, 320.24°)
OKLaboklab(31.72% 0.0996 -0.0945)
OKLCHoklch(31.72% 0.137 316.5)
XYZxyz(5.2028, 2.6770, 11.0669)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0E5F #215F0E
analogous
#240E5F #4C0E5F #5F0E4A
triadic
#4C0E5F #5F4C0E #0E5F4C
tetradic
#4C0E5F #5F240E #215F0E #0E4A5F
square
#4C0E5F #5F240E #215F0E #0E4A5F
split-complementary
#4C0E5F #4A5F0E #0E5F24
monochromatic
#15041B #21062A #4C0E5F #771694 #A11ECA

Accessibility & contrast

On white

13.68
#4C0E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0E5F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0E5F#FFFFFF#000000##FFFFFF
##4C0E5F1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#0E2F5D
Tritanopia (blue-blind)
#4B2137
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c0e5f;
/* rgb */ color: rgb(76, 14, 95);
/* oklch */ color: oklch(31.7% 0.137 316.5);
Tailwind
colors: {
  custom: {
    50: '#81568d',
    500: '#4c0e5f',
    950: '#000000',
  },
}
SCSS
$custom: #4c0e5f;
$custom-light: #81568d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0e5f",
  "rgb": {
    "r": 76,
    "g": 14,
    "b": 95
  },
  "hsl": {
    "h": 285.926,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31724,
    "c": 0.13726,
    "h": 316.5
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#4C0E5F
secondary
#499930
accent
#F13763
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C0E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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