#4E237E#4E237E

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

Color values

HEX#4E237E
RGBrgb(78, 35, 126)
HSLhsl(268, 57%, 32%)
HSVhsv(268, 72%, 49%)
CMYKcmyk(38.1%, 72.2%, 0%, 50.6%)
CIE-LABlab(24.73, 38.98, -43.80)
CIE-LCHlch(24.73, 58.63, 311.67°)
OKLaboklab(36.84% 0.0752 -0.1248)
OKLCHoklch(36.84% 0.146 301.1)
XYZxyz(7.5079, 4.3281, 20.1745)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E237E #537E23
analogous
#23257E #4E237E #7C237E
triadic
#4E237E #7E4E23 #237E4E
tetradic
#4E237E #7E2325 #537E23 #237E7C
square
#4E237E #7E2325 #537E23 #237E7C
split-complementary
#4E237E #7E7C23 #257E23
monochromatic
#13081E #30164E #4E237E #6C30AE #8A4ECE

Accessibility & contrast

On white

11.26
#4E237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E237E
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E237E#FFFFFF#000000##FFFFFF
##4E237E1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#44394E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e237e;
/* rgb */ color: rgb(78, 35, 126);
/* oklch */ color: oklch(36.8% 0.146 301.1);
Tailwind
colors: {
  custom: {
    50: '#8462a4',
    500: '#4e237e',
    950: '#000000',
  },
}
SCSS
$custom: #4e237e;
$custom-light: #8462a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e237e",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 268.352,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36835,
    "c": 0.1457,
    "h": 301.1
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

primary
#4E237E
secondary
#81B04C
accent
#E04898
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E237E

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

Preview Lab → · Contrast checker → · Palette generator →

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