#4C0F68#4C0F68

#4C0F68 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.145 H 311.9°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#4C0F68
RGBrgb(76, 15, 104)
HSLhsl(281, 75%, 23%)
HSVhsv(281, 86%, 41%)
CMYKcmyk(26.9%, 85.6%, 0%, 59.2%)
CIE-LABlab(19.55, 41.91, -38.07)
CIE-LCHlch(19.55, 56.62, 317.75°)
OKLaboklab(32.55% 0.0967 -0.1079)
OKLCHoklch(32.55% 0.145 311.9)
XYZxyz(5.6495, 2.8778, 13.3519)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F68 #2B680F
analogous
#200F68 #4C0F68 #680F57
triadic
#4C0F68 #684C0F #0F684C
tetradic
#4C0F68 #68200F #2B680F #0F5768
square
#4C0F68 #68200F #2B680F #0F5768
split-complementary
#4C0F68 #57680F #0F6820
monochromatic
#14041B #250733 #4C0F68 #73179D #9A1ED3

Accessibility & contrast

On white

13.33
#4C0F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4C0F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F68
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F68#FFFFFF#000000##FFFFFF
##4C0F681.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#003066
Tritanopia (blue-blind)
#48263C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c0f68;
/* rgb */ color: rgb(76, 15, 104);
/* oklch */ color: oklch(32.5% 0.145 311.9);
Tailwind
colors: {
  custom: {
    50: '#825794',
    500: '#4c0f68',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f68;
$custom-light: #825794;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f68",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 281.124,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32547,
    "c": 0.14489,
    "h": 311.9
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#4C0F68
secondary
#55A132
accent
#F13671
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4C0F68

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

Preview Lab → · Contrast checker → · Palette generator →

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