#5E239F#5E239F

#5E239F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.185 H 299.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5E239F
RGBrgb(94, 35, 159)
HSLhsl(269, 64%, 38%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(40.9%, 78%, 0%, 37.6%)
CIE-LABlab(29.63, 50.45, -56.17)
CIE-LCHlch(29.63, 75.50, 311.93°)
OKLaboklab(41.62% 0.0918 -0.1606)
OKLCHoklch(41.62% 0.185 299.7)
XYZxyz(11.4736, 6.0848, 33.3642)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E239F #649F23
analogous
#23269F #5E239F #9C239F
triadic
#5E239F #9F5E23 #239F5E
tetradic
#5E239F #9F2326 #649F23 #239F9C
square
#5E239F #9F2326 #649F23 #239F9C
split-complementary
#5E239F #9F9C23 #269F23
monochromatic
#230D3B #40186D #5E239F #7C2ED1 #9B60DC

Accessibility & contrast

On white

9.47
#5E239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E239F
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E239F#FFFFFF#000000##FFFFFF
##5E239F1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#4F4460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e239f;
/* rgb */ color: rgb(94, 35, 159);
/* oklch */ color: oklch(41.6% 0.185 299.7);
Tailwind
colors: {
  custom: {
    50: '#9265bc',
    500: '#5e239f',
    950: '#000000',
  },
}
SCSS
$custom: #5e239f;
$custom-light: #9265bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e239f",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 268.548,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41621,
    "c": 0.18493,
    "h": 299.7
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#5E239F
secondary
#91C15D
accent
#E74198
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E239F

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

Preview Lab → · Contrast checker → · Palette generator →

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