#4E238A#4E238A

#4E238A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.160 H 297.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4E238A
RGBrgb(78, 35, 138)
HSLhsl(265, 60%, 34%)
HSVhsv(265, 75%, 54%)
CMYKcmyk(43.5%, 74.6%, 0%, 45.9%)
CIE-LABlab(25.73, 42.20, -49.69)
CIE-LCHlch(25.73, 65.20, 310.34°)
OKLaboklab(37.86% 0.0728 -0.1421)
OKLCHoklch(37.86% 0.16 297.1)
XYZxyz(8.3292, 4.6566, 24.4998)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E238A #5F8A23
analogous
#232B8A #4E238A #82238A
triadic
#4E238A #8A4E23 #238A4E
tetradic
#4E238A #8A232B #5F8A23 #238A82
square
#4E238A #8A232B #5F8A23 #238A82
split-complementary
#4E238A #8A8223 #2B8A23
monochromatic
#170A28 #321759 #4E238A #6A2FBB #8954D4

Accessibility & contrast

On white

10.87
#4E238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E238A
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E238A#FFFFFF#000000##FFFFFF
##4E238A1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#3E3D54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e238a;
/* rgb */ color: rgb(78, 35, 138);
/* oklch */ color: oklch(37.9% 0.160 297.1);
Tailwind
colors: {
  custom: {
    50: '#8562ad',
    500: '#4e238a',
    950: '#000000',
  },
}
SCSS
$custom: #4e238a;
$custom-light: #8562ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e238a",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 265.049,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37862,
    "c": 0.15968,
    "h": 297.1
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#4E238A
secondary
#8DB751
accent
#E345A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E238A

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

Preview Lab → · Contrast checker → · Palette generator →

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