#5E239D#5E239D

#5E239D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.183 H 300.3°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5E239D
RGBrgb(94, 35, 157)
HSLhsl(269, 64%, 38%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(40.1%, 77.7%, 0%, 38.4%)
CIE-LABlab(29.45, 49.95, -55.24)
CIE-LCHlch(29.45, 74.47, 312.12°)
OKLaboklab(41.45% 0.0923 -0.1578)
OKLCHoklch(41.45% 0.183 300.3)
XYZxyz(11.3014, 6.0160, 32.4575)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E239D #629D23
analogous
#23259D #5E239D #9B239D
triadic
#5E239D #9D5E23 #239D5E
tetradic
#5E239D #9D2325 #629D23 #239D9B
square
#5E239D #9D2325 #629D23 #239D9B
split-complementary
#5E239D #9D9B23 #259D23
monochromatic
#220D39 #40186B #5E239D #7C2ECF #9B5FDB

Accessibility & contrast

On white

9.53
#5E239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5E239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E239D
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E239D#FFFFFF#000000##FFFFFF
##5E239D1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#4F435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e239d;
/* rgb */ color: rgb(94, 35, 157);
/* oklch */ color: oklch(41.4% 0.183 300.3);
Tailwind
colors: {
  custom: {
    50: '#9265bb',
    500: '#5e239d',
    950: '#000000',
  },
}
SCSS
$custom: #5e239d;
$custom-light: #9265bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e239d",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 269.016,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.18283,
    "h": 300.3
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#5E239D
secondary
#90C05C
accent
#E74197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E239D

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

Preview Lab → · Contrast checker → · Palette generator →

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