#5E238D#5E238D

#5E238D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.166 H 305.4°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5E238D
RGBrgb(94, 35, 141)
HSLhsl(273, 60%, 35%)
HSVhsv(273, 75%, 55%)
CMYKcmyk(33.3%, 75.2%, 0%, 44.7%)
CIE-LABlab(28.13, 46.03, -47.56)
CIE-LCHlch(28.13, 66.19, 314.06°)
OKLaboklab(40.1% 0.096 -0.1353)
OKLCHoklch(40.1% 0.166 305.4)
XYZxyz(10.0238, 5.5049, 25.7286)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E238D #528D23
analogous
#29238D #5E238D #8D2387
triadic
#5E238D #8D5E23 #238D5E
tetradic
#5E238D #8D2923 #528D23 #23878D
square
#5E238D #8D2923 #528D23 #23878D
split-complementary
#5E238D #878D23 #238D29
monochromatic
#1D0B2B #3D175C #5E238D #7F2FBE #9C55D5

Accessibility & contrast

On white

10.00
#5E238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5E238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E238D
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E238D#FFFFFF#000000##FFFFFF
##5E238D1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#553D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e238d;
/* rgb */ color: rgb(94, 35, 141);
/* oklch */ color: oklch(40.1% 0.166 305.4);
Tailwind
colors: {
  custom: {
    50: '#9064af',
    500: '#5e238d',
    950: '#000000',
  },
}
SCSS
$custom: #5e238d;
$custom-light: #9064af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e238d",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 273.396,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40101,
    "c": 0.16591,
    "h": 305.4
  },
  "luminance": 0.05505
}

Semantic roles & 50–950 ramp

primary
#5E238D
secondary
#80B953
accent
#E3448B
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E238D

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

Preview Lab → · Contrast checker → · Palette generator →

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