#5E238F#5E238F

#5E238F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.168 H 304.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E238F
RGBrgb(94, 35, 143)
HSLhsl(273, 61%, 35%)
HSVhsv(273, 76%, 56%)
CMYKcmyk(34.3%, 75.5%, 0%, 43.9%)
CIE-LABlab(28.29, 46.51, -48.54)
CIE-LCHlch(28.29, 67.23, 313.77°)
OKLaboklab(40.26% 0.0956 -0.1382)
OKLCHoklch(40.26% 0.168 304.7)
XYZxyz(10.1739, 5.5650, 26.5194)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E238F #548F23
analogous
#28238F #5E238F #8F238A
triadic
#5E238F #8F5E23 #238F5E
tetradic
#5E238F #8F2823 #548F23 #238A8F
square
#5E238F #8F2823 #548F23 #238A8F
split-complementary
#5E238F #8A8F23 #238F28
monochromatic
#1D0B2D #3E175E #5E238F #7E2FC0 #9C57D6

Accessibility & contrast

On white

9.94
#5E238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E238F
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E238F#FFFFFF#000000##FFFFFF
##5E238F1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#553D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e238f;
/* rgb */ color: rgb(94, 35, 143);
/* oklch */ color: oklch(40.3% 0.168 304.7);
Tailwind
colors: {
  custom: {
    50: '#9064b1',
    500: '#5e238f',
    950: '#000000',
  },
}
SCSS
$custom: #5e238f;
$custom-light: #9064b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e238f",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 272.778,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40264,
    "c": 0.16802,
    "h": 304.7
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#5E238F
secondary
#82BA54
accent
#E4448D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E238F

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

Preview Lab → · Contrast checker → · Palette generator →

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