#4E237A#4E237A

#4E237A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.141 H 302.5°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4E237A
RGBrgb(78, 35, 122)
HSLhsl(270, 55%, 31%)
HSVhsv(270, 71%, 48%)
CMYKcmyk(36.1%, 71.3%, 0%, 52.2%)
CIE-LABlab(24.41, 37.93, -41.78)
CIE-LCHlch(24.41, 56.43, 312.23°)
OKLaboklab(36.51% 0.0758 -0.1189)
OKLCHoklch(36.51% 0.141 302.5)
XYZxyz(7.2549, 4.2269, 18.8422)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E237A #4F7A23
analogous
#23237A #4E237A #79237A
triadic
#4E237A #7A4E23 #237A4E
tetradic
#4E237A #7A2323 #4F7A23 #237A79
square
#4E237A #7A2323 #4F7A23 #237A79
split-complementary
#4E237A #7A7923 #237A23
monochromatic
#11081B #30154A #4E237A #6C31AA #8B4CCC

Accessibility & contrast

On white

11.38
#4E237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E237A
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E237A#FFFFFF#000000##FFFFFF
##4E237A1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#45374B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e237a;
/* rgb */ color: rgb(78, 35, 122);
/* oklch */ color: oklch(36.5% 0.141 302.5);
Tailwind
colors: {
  custom: {
    50: '#8461a1',
    500: '#4e237a',
    950: '#000000',
  },
}
SCSS
$custom: #4e237a;
$custom-light: #8461a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e237a",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 269.655,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36506,
    "c": 0.14101,
    "h": 302.5
  },
  "luminance": 0.04227
}

Semantic roles & 50–950 ramp

primary
#4E237A
secondary
#7DAD4C
accent
#DF4995
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E237A

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

Preview Lab → · Contrast checker → · Palette generator →

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