#4E237B#4E237B

#4E237B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.142 H 302.2°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#4E237B
RGBrgb(78, 35, 123)
HSLhsl(269, 56%, 31%)
HSVhsv(269, 72%, 48%)
CMYKcmyk(36.6%, 71.5%, 0%, 51.8%)
CIE-LABlab(24.49, 38.19, -42.29)
CIE-LCHlch(24.49, 56.98, 312.08°)
OKLaboklab(36.59% 0.0757 -0.1204)
OKLCHoklch(36.59% 0.142 302.2)
XYZxyz(7.3172, 4.2518, 19.1702)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E237B #507B23
analogous
#23247B #4E237B #7A237B
triadic
#4E237B #7B4E23 #237B4E
tetradic
#4E237B #7B2324 #507B23 #237B7A
square
#4E237B #7B2324 #507B23 #237B7A
split-complementary
#4E237B #7B7A23 #247B23
monochromatic
#12081C #30154B #4E237B #6C31AB #8B4CCC

Accessibility & contrast

On white

11.35
#4E237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E237B
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E237B#FFFFFF#000000##FFFFFF
##4E237B1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#45384C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e237b;
/* rgb */ color: rgb(78, 35, 123);
/* oklch */ color: oklch(36.6% 0.142 302.2);
Tailwind
colors: {
  custom: {
    50: '#8461a2',
    500: '#4e237b',
    950: '#000000',
  },
}
SCSS
$custom: #4e237b;
$custom-light: #8461a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e237b",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 269.318,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.14218,
    "h": 302.2
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#4E237B
secondary
#7EAE4C
accent
#DF4996
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E237B

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

Preview Lab → · Contrast checker → · Palette generator →

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