#4E1F72#4E1F72

#4E1F72 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.137 H 306.5°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4E1F72
RGBrgb(78, 31, 114)
HSLhsl(274, 57%, 28%)
HSVhsv(274, 73%, 45%)
CMYKcmyk(31.6%, 72.8%, 0%, 55.3%)
CIE-LABlab(23.05, 37.91, -38.87)
CIE-LCHlch(23.05, 54.30, 314.28°)
OKLaboklab(35.34% 0.0816 -0.1103)
OKLCHoklch(35.34% 0.137 306.5)
XYZxyz(6.6685, 3.8146, 16.3013)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F72 #43721F
analogous
#241F72 #4E1F72 #721F6C
triadic
#4E1F72 #724E1F #1F724E
tetradic
#4E1F72 #72241F #43721F #1F6C72
square
#4E1F72 #72241F #43721F #1F6C72
split-complementary
#4E1F72 #6C721F #1F7224
monochromatic
#100718 #2D1242 #4E1F72 #6F2CA2 #8F40CB

Accessibility & contrast

On white

11.91
#4E1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F72
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F72#FFFFFF#000000##FFFFFF
##4E1F721.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#053770
Tritanopia (blue-blind)
#483246
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1f72;
/* rgb */ color: rgb(78, 31, 114);
/* oklch */ color: oklch(35.3% 0.137 306.5);
Tailwind
colors: {
  custom: {
    50: '#835f9b',
    500: '#4e1f72',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f72;
$custom-light: #835f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f72",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 273.976,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35338,
    "c": 0.13722,
    "h": 306.5
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#4E1F72
secondary
#70A647
accent
#E0478A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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