#4E237D#4E237D

#4E237D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.145 H 301.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4E237D
RGBrgb(78, 35, 125)
HSLhsl(269, 56%, 31%)
HSVhsv(269, 72%, 49%)
CMYKcmyk(37.6%, 72%, 0%, 51%)
CIE-LABlab(24.65, 38.72, -43.30)
CIE-LCHlch(24.65, 58.08, 311.80°)
OKLaboklab(36.75% 0.0754 -0.1233)
OKLCHoklch(36.75% 0.145 301.4)
XYZxyz(7.4437, 4.3024, 19.8363)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E237D #527D23
analogous
#23257D #4E237D #7B237D
triadic
#4E237D #7D4E23 #237D4E
tetradic
#4E237D #7D2325 #527D23 #237D7B
square
#4E237D #7D2325 #527D23 #237D7B
split-complementary
#4E237D #7D7B23 #257D23
monochromatic
#12081D #30164D #4E237D #6C30AD #8A4DCD

Accessibility & contrast

On white

11.29
#4E237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E237D
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E237D#FFFFFF#000000##FFFFFF
##4E237D1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#44384D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e237d;
/* rgb */ color: rgb(78, 35, 125);
/* oklch */ color: oklch(36.8% 0.145 301.4);
Tailwind
colors: {
  custom: {
    50: '#8462a3',
    500: '#4e237d',
    950: '#000000',
  },
}
SCSS
$custom: #4e237d;
$custom-light: #8462a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e237d",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 268.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36752,
    "c": 0.14453,
    "h": 301.4
  },
  "luminance": 0.04302
}

Semantic roles & 50–950 ramp

primary
#4E237D
secondary
#80AF4C
accent
#E04897
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E237D

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

Preview Lab → · Contrast checker → · Palette generator →

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