#4E238C#4E238C

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

Color values

HEX#4E238C
RGBrgb(78, 35, 140)
HSLhsl(265, 60%, 34%)
HSVhsv(265, 75%, 55%)
CMYKcmyk(44.3%, 75%, 0%, 45.1%)
CIE-LABlab(25.91, 42.75, -50.65)
CIE-LCHlch(25.91, 66.28, 310.16°)
OKLaboklab(38.04% 0.0723 -0.1449)
OKLCHoklch(38.04% 0.162 296.5)
XYZxyz(8.4753, 4.7150, 25.2694)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E238C #618C23
analogous
#232D8C #4E238C #83238C
triadic
#4E238C #8C4E23 #238C4E
tetradic
#4E238C #8C232D #618C23 #238C83
square
#4E238C #8C232D #618C23 #238C83
split-complementary
#4E238C #8C8323 #2D8C23
monochromatic
#170B2A #33175B #4E238C #692FBD #8955D4

Accessibility & contrast

On white

10.81
#4E238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E238C
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E238C#FFFFFF#000000##FFFFFF
##4E238C1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e238c;
/* rgb */ color: rgb(78, 35, 140);
/* oklch */ color: oklch(38.0% 0.162 296.5);
Tailwind
colors: {
  custom: {
    50: '#8662ae',
    500: '#4e238c',
    950: '#000000',
  },
}
SCSS
$custom: #4e238c;
$custom-light: #8662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e238c",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 264.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38039,
    "c": 0.16199,
    "h": 296.5
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E238C

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

Preview Lab → · Contrast checker → · Palette generator →

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