#4E1F68#4E1F68

#4E1F68 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.126 H 311.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4E1F68
RGBrgb(78, 31, 104)
HSLhsl(279, 54%, 26%)
HSVhsv(279, 70%, 41%)
CMYKcmyk(25%, 70.2%, 0%, 59.2%)
CIE-LABlab(22.30, 35.43, -33.61)
CIE-LCHlch(22.30, 48.84, 316.51°)
OKLaboklab(34.56% 0.0828 -0.0948)
OKLCHoklch(34.56% 0.126 311.1)
XYZxyz(6.1301, 3.5993, 13.4658)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F68 #39681F
analogous
#2A1F68 #4E1F68 #681F5E
triadic
#4E1F68 #684E1F #1F684E
tetradic
#4E1F68 #682A1F #39681F #1F5E68
square
#4E1F68 #682A1F #39681F #1F5E68
split-complementary
#4E1F68 #5E681F #1F682A
monochromatic
#120718 #2B1139 #4E1F68 #712D97 #943CC5

Accessibility & contrast

On white

12.21
#4E1F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F68
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F68#FFFFFF#000000##FFFFFF
##4E1F681.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#163666
Tritanopia (blue-blind)
#4B2E40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1f68;
/* rgb */ color: rgb(78, 31, 104);
/* oklch */ color: oklch(34.6% 0.126 311.1);
Tailwind
colors: {
  custom: {
    50: '#825e94',
    500: '#4e1f68',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f68;
$custom-light: #825e94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f68",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 278.63,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34564,
    "c": 0.1259,
    "h": 311.1
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#4E1F68
secondary
#659C46
accent
#DD4A7F
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F68

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

Preview Lab → · Contrast checker → · Palette generator →

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