#5E237D#5E237D

#5E237D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.149 H 311.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5E237D
RGBrgb(94, 35, 125)
HSLhsl(279, 56%, 31%)
HSVhsv(279, 72%, 49%)
CMYKcmyk(24.8%, 72%, 0%, 51%)
CIE-LABlab(26.91, 42.24, -39.52)
CIE-LCHlch(26.91, 57.84, 316.90°)
OKLaboklab(38.85% 0.0986 -0.1117)
OKLCHoklch(38.85% 0.149 311.4)
XYZxyz(8.9181, 5.0626, 19.9055)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E237D #427D23
analogous
#31237D #5E237D #7D236F
triadic
#5E237D #7D5E23 #237D5E
tetradic
#5E237D #7D3123 #427D23 #236F7D
square
#5E237D #7D3123 #427D23 #236F7D
split-complementary
#5E237D #6F7D23 #237D31
monochromatic
#16081D #3A164D #5E237D #8230AD #A14DCD

Accessibility & contrast

On white

10.44
#5E237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E237D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E237D#FFFFFF#000000##FFFFFF
##5E237D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#17417B
Tritanopia (blue-blind)
#5A364D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e237d;
/* rgb */ color: rgb(94, 35, 125);
/* oklch */ color: oklch(38.9% 0.149 311.4);
Tailwind
colors: {
  custom: {
    50: '#8f63a3',
    500: '#5e237d',
    950: '#000000',
  },
}
SCSS
$custom: #5e237d;
$custom-light: #8f63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e237d",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 279.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.14896,
    "h": 311.4
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#5E237D
secondary
#6EAF4C
accent
#E0487C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E237D

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

Preview Lab → · Contrast checker → · Palette generator →

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