#4E239A#4E239A

#4E239A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.178 H 292.7°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4E239A
RGBrgb(78, 35, 154)
HSLhsl(262, 63%, 37%)
HSVhsv(262, 77%, 60%)
CMYKcmyk(49.4%, 77.3%, 0%, 39.6%)
CIE-LABlab(27.17, 46.56, -57.22)
CIE-LCHlch(27.17, 73.77, 309.14°)
OKLaboklab(39.32% 0.0687 -0.1642)
OKLCHoklch(39.32% 0.178 292.7)
XYZxyz(9.5740, 5.1545, 31.0561)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E239A #6F9A23
analogous
#23339A #4E239A #8A239A
triadic
#4E239A #9A4E23 #239A4E
tetradic
#4E239A #9A2333 #6F9A23 #239A8A
square
#4E239A #9A2333 #6F9A23 #239A8A
split-complementary
#4E239A #9A8A23 #339A23
monochromatic
#1B0C36 #351868 #4E239A #672ECC #8A5DDA

Accessibility & contrast

On white

10.34
#4E239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4E239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E239A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E239A#FFFFFF#000000##FFFFFF
##4E239A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#36445D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e239a;
/* rgb */ color: rgb(78, 35, 154);
/* oklch */ color: oklch(39.3% 0.178 292.7);
Tailwind
colors: {
  custom: {
    50: '#8863b9',
    500: '#4e239a',
    950: '#000000',
  },
}
SCSS
$custom: #4e239a;
$custom-light: #8863b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e239a",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 261.681,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39317,
    "c": 0.178,
    "h": 292.7
  },
  "luminance": 0.05155
}

Semantic roles & 50–950 ramp

primary
#4E239A
secondary
#9ABF5A
accent
#E642AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4E239A

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

Preview Lab → · Contrast checker → · Palette generator →

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