#4E239F#4E239F

#4E239F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.184 H 291.5°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4E239F
RGBrgb(78, 35, 159)
HSLhsl(261, 64%, 38%)
HSVhsv(261, 78%, 62%)
CMYKcmyk(50.9%, 78%, 0%, 37.6%)
CIE-LABlab(27.64, 47.93, -59.50)
CIE-LCHlch(27.64, 76.40, 308.85°)
OKLaboklab(39.79% 0.0672 -0.1709)
OKLCHoklch(39.79% 0.184 291.5)
XYZxyz(9.9991, 5.3246, 33.2951)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E239F #749F23
analogous
#23369F #4E239F #8C239F
triadic
#4E239F #9F4E23 #239F4E
tetradic
#4E239F #9F2336 #749F23 #239F8C
square
#4E239F #9F2336 #749F23 #239F8C
split-complementary
#4E239F #9F8C23 #369F23
monochromatic
#1D0D3B #35186D #4E239F #672ED1 #8B60DC

Accessibility & contrast

On white

10.17
#4E239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E239F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E239F#FFFFFF#000000##FFFFFF
##4E239F1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#324660
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e239f;
/* rgb */ color: rgb(78, 35, 159);
/* oklch */ color: oklch(39.8% 0.184 291.5);
Tailwind
colors: {
  custom: {
    50: '#8863bc',
    500: '#4e239f',
    950: '#000000',
  },
}
SCSS
$custom: #4e239f;
$custom-light: #8863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e239f",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 260.806,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39789,
    "c": 0.18365,
    "h": 291.5
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#4E239F
secondary
#9EC15D
accent
#E741AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E239F

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

Preview Lab → · Contrast checker → · Palette generator →

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