#4E1F6E#4E1F6E

#4E1F6E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.133 H 308.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#4E1F6E
RGBrgb(78, 31, 110)
HSLhsl(276, 56%, 28%)
HSVhsv(276, 72%, 43%)
CMYKcmyk(29.1%, 71.8%, 0%, 56.9%)
CIE-LABlab(22.74, 36.91, -36.79)
CIE-LCHlch(22.74, 52.11, 315.09°)
OKLaboklab(35.02% 0.0822 -0.1042)
OKLCHoklch(35.02% 0.133 308.3)
XYZxyz(6.4458, 3.7256, 15.1284)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F6E #3F6E1F
analogous
#261F6E #4E1F6E #6E1F66
triadic
#4E1F6E #6E4E1F #1F6E4E
tetradic
#4E1F6E #6E261F #3F6E1F #1F666E
square
#4E1F6E #6E261F #3F6E1F #1F666E
split-complementary
#4E1F6E #666E1F #1F6E26
monochromatic
#110718 #2C123E #4E1F6E #702C9E #913FC9

Accessibility & contrast

On white

12.03
#4E1F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F6E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F6E#FFFFFF#000000##FFFFFF
##4E1F6E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#0E376C
Tritanopia (blue-blind)
#493044
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1f6e;
/* rgb */ color: rgb(78, 31, 110);
/* oklch */ color: oklch(35.0% 0.133 308.3);
Tailwind
colors: {
  custom: {
    50: '#835f98',
    500: '#4e1f6e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f6e;
$custom-light: #835f98;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f6e",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 275.696,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35022,
    "c": 0.13269,
    "h": 308.3
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#4E1F6E
secondary
#6CA247
accent
#DF4886
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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