#4E2187#4E2187

#4E2187 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.159 H 298.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#4E2187
RGBrgb(78, 33, 135)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(42.2%, 75.6%, 0%, 47.1%)
CIE-LABlab(25.13, 42.38, -48.81)
CIE-LCHlch(25.13, 64.64, 310.97°)
OKLaboklab(37.35% 0.0754 -0.1395)
OKLCHoklch(37.35% 0.159 298.4)
XYZxyz(8.0578, 4.4566, 23.3526)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2187 #5A8721
analogous
#212787 #4E2187 #812187
triadic
#4E2187 #874E21 #21874E
tetradic
#4E2187 #872127 #5A8721 #218781
square
#4E2187 #872127 #5A8721 #218781
split-complementary
#4E2187 #878121 #278721
monochromatic
#150925 #321556 #4E2187 #6A2DB8 #894FD4

Accessibility & contrast

On white

11.10
#4E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2187
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2187#FFFFFF#000000##FFFFFF
##4E21871.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#403B52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2187;
/* rgb */ color: rgb(78, 33, 135);
/* oklch */ color: oklch(37.4% 0.159 298.4);
Tailwind
colors: {
  custom: {
    50: '#8561ab',
    500: '#4e2187',
    950: '#000000',
  },
}
SCSS
$custom: #4e2187;
$custom-light: #8561ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2187",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 266.471,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37353,
    "c": 0.1586,
    "h": 298.4
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#4E2187
secondary
#88B74D
accent
#E4449D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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