#4E0F72#4E0F72

#4E0F72 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.155 H 308.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#4E0F72
RGBrgb(78, 15, 114)
HSLhsl(278, 77%, 25%)
HSVhsv(278, 87%, 45%)
CMYKcmyk(31.6%, 86.8%, 0%, 55.3%)
CIE-LABlab(20.74, 44.53, -42.63)
CIE-LCHlch(20.74, 61.64, 316.25°)
OKLaboklab(33.71% 0.0968 -0.1212)
OKLCHoklch(33.71% 0.155 308.6)
XYZxyz(6.3493, 3.1764, 16.1949)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E0F72 #33720F
analogous
#1D0F72 #4E0F72 #720F64
triadic
#4E0F72 #724E0F #0F724E
tetradic
#4E0F72 #721D0F #33720F #0F6472
square
#4E0F72 #721D0F #33720F #0F6472
split-complementary
#4E0F72 #64720F #0F721D
monochromatic
#13041B #29083C #4E0F72 #7316A8 #981DDE

Accessibility & contrast

On white

12.84
#4E0F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E0F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E0F72
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E0F72#FFFFFF#000000##FFFFFF
##4E0F721.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#482A42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e0f72;
/* rgb */ color: rgb(78, 15, 114);
/* oklch */ color: oklch(33.7% 0.155 308.6);
Tailwind
colors: {
  custom: {
    50: '#84589b',
    500: '#4e0f72',
    950: '#000000',
  },
}
SCSS
$custom: #4e0f72;
$custom-light: #84589b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e0f72",
  "rgb": {
    "r": 78,
    "g": 15,
    "b": 114
  },
  "hsl": {
    "h": 278.182,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.15515,
    "h": 308.6
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#4E0F72
secondary
#5EAA33
accent
#F3357A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E0F72

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

Preview Lab → · Contrast checker → · Palette generator →

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