#4E2287#4E2287

#4E2287 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.157 H 298.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#4E2287
RGBrgb(78, 34, 135)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 53%)
CMYKcmyk(42.2%, 74.8%, 0%, 47.1%)
CIE-LABlab(25.30, 41.89, -48.53)
CIE-LCHlch(25.30, 64.11, 310.80°)
OKLaboklab(37.48% 0.0744 -0.1387)
OKLCHoklch(37.48% 0.157 298.2)
XYZxyz(8.0860, 4.5129, 23.3620)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2287 #5B8722
analogous
#222887 #4E2287 #802287
triadic
#4E2287 #874E22 #22874E
tetradic
#4E2287 #872228 #5B8722 #228780
square
#4E2287 #872228 #5B8722 #228780
split-complementary
#4E2287 #878022 #288722
monochromatic
#160925 #321656 #4E2287 #6A2EB8 #8950D3

Accessibility & contrast

On white

11.04
#4E2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2287
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2287#FFFFFF#000000##FFFFFF
##4E22871.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2287;
/* rgb */ color: rgb(78, 34, 135);
/* oklch */ color: oklch(37.5% 0.157 298.2);
Tailwind
colors: {
  custom: {
    50: '#8561ab',
    500: '#4e2287',
    950: '#000000',
  },
}
SCSS
$custom: #4e2287;
$custom-light: #8561ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2287",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 266.139,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37475,
    "c": 0.15741,
    "h": 298.2
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#4E2287
secondary
#89B74E
accent
#E3459E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E2287

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

Preview Lab → · Contrast checker → · Palette generator →

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