#4E238B#4E238B

#4E238B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.161 H 296.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4E238B
RGBrgb(78, 35, 139)
HSLhsl(265, 60%, 34%)
HSVhsv(265, 75%, 55%)
CMYKcmyk(43.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.82, 42.47, -50.17)
CIE-LCHlch(25.82, 65.74, 310.25°)
OKLaboklab(37.95% 0.0725 -0.1435)
OKLCHoklch(37.95% 0.161 296.8)
XYZxyz(8.4019, 4.6857, 24.8828)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E238B #608B23
analogous
#232C8B #4E238B #82238B
triadic
#4E238B #8B4E23 #238B4E
tetradic
#4E238B #8B232C #608B23 #238B82
square
#4E238B #8B232C #608B23 #238B82
split-complementary
#4E238B #8B8223 #2C8B23
monochromatic
#170A29 #33175A #4E238B #692FBC #8954D4

Accessibility & contrast

On white

10.84
#4E238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E238B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E238B#FFFFFF#000000##FFFFFF
##4E238B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#3E3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e238b;
/* rgb */ color: rgb(78, 35, 139);
/* oklch */ color: oklch(38.0% 0.161 296.8);
Tailwind
colors: {
  custom: {
    50: '#8662ae',
    500: '#4e238b',
    950: '#000000',
  },
}
SCSS
$custom: #4e238b;
$custom-light: #8662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e238b",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 264.808,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37951,
    "c": 0.16083,
    "h": 296.8
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#4E238B
secondary
#8EB852
accent
#E345A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E238B

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

Preview Lab → · Contrast checker → · Palette generator →

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