#4E1985#4E1985

#4E1985 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.165 H 300.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4E1985
RGBrgb(78, 25, 133)
HSLhsl(269, 68%, 31%)
HSVhsv(269, 81%, 52%)
CMYKcmyk(41.4%, 81.2%, 0%, 47.8%)
CIE-LABlab(23.70, 45.44, -49.89)
CIE-LCHlch(23.70, 67.48, 312.33°)
OKLaboklab(36.3% 0.0832 -0.1426)
OKLCHoklch(36.3% 0.165 300.2)
XYZxyz(7.7221, 4.0083, 22.5526)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1985 #508519
analogous
#191A85 #4E1985 #841985
triadic
#4E1985 #854E19 #19854E
tetradic
#4E1985 #85191A #508519 #198584
square
#4E1985 #85191A #508519 #198584
split-complementary
#4E1985 #858419 #1A8519
monochromatic
#12061E #300F51 #4E1985 #6C23B9 #8B3EDB

Accessibility & contrast

On white

11.66
#4E1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1985
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1985#FFFFFF#000000##FFFFFF
##4E19851.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#41374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1985;
/* rgb */ color: rgb(78, 25, 133);
/* oklch */ color: oklch(36.3% 0.165 300.2);
Tailwind
colors: {
  custom: {
    50: '#865da9',
    500: '#4e1985',
    950: '#000000',
  },
}
SCSS
$custom: #4e1985;
$custom-light: #865da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1985",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 269.444,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36297,
    "c": 0.1651,
    "h": 300.2
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#4E1985
secondary
#7EB941
accent
#EB3D96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4E1985

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

Preview Lab → · Contrast checker → · Palette generator →

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