#4E1F67#4E1F67

#4E1F67 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.125 H 311.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4E1F67
RGBrgb(78, 31, 103)
HSLhsl(279, 54%, 26%)
HSVhsv(279, 70%, 40%)
CMYKcmyk(24.3%, 69.9%, 0%, 59.6%)
CIE-LABlab(22.23, 35.19, -33.07)
CIE-LCHlch(22.23, 48.29, 316.77°)
OKLaboklab(34.49% 0.0829 -0.0933)
OKLCHoklch(34.49% 0.125 311.6)
XYZxyz(6.0796, 3.5791, 13.1999)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F67 #38671F
analogous
#2A1F67 #4E1F67 #671F5C
triadic
#4E1F67 #674E1F #1F674E
tetradic
#4E1F67 #672A1F #38671F #1F5C67
square
#4E1F67 #672A1F #38671F #1F5C67
split-complementary
#4E1F67 #5C671F #1F672A
monochromatic
#120718 #2A1138 #4E1F67 #722D96 #953CC4

Accessibility & contrast

On white

12.24
#4E1F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1F67
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F67#FFFFFF#000000##FFFFFF
##4E1F671.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#183665
Tritanopia (blue-blind)
#4B2E40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1f67;
/* rgb */ color: rgb(78, 31, 103);
/* oklch */ color: oklch(34.5% 0.125 311.6);
Tailwind
colors: {
  custom: {
    50: '#825e93',
    500: '#4e1f67',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f67;
$custom-light: #825e93;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f67",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 279.167,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34489,
    "c": 0.12476,
    "h": 311.6
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#4E1F67
secondary
#649B46
accent
#DD4B7E
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E1F67

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

Preview Lab → · Contrast checker → · Palette generator →

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