#5D238F#5D238F

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

Color values

HEX#5D238F
RGBrgb(93, 35, 143)
HSLhsl(272, 61%, 35%)
HSVhsv(272, 76%, 56%)
CMYKcmyk(35%, 75.5%, 0%, 43.9%)
CIE-LABlab(28.15, 46.32, -48.78)
CIE-LCHlch(28.15, 67.26, 313.52°)
OKLaboklab(40.14% 0.0942 -0.1389)
OKLCHoklch(40.14% 0.168 304.1)
XYZxyz(10.0720, 5.5124, 26.5147)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D238F #558F23
analogous
#27238F #5D238F #8F238B
triadic
#5D238F #8F5D23 #238F5D
tetradic
#5D238F #8F2723 #558F23 #238B8F
square
#5D238F #8F2723 #558F23 #238B8F
split-complementary
#5D238F #8B8F23 #238F27
monochromatic
#1D0B2D #3D175E #5D238F #7D2FC0 #9B57D6

Accessibility & contrast

On white

9.99
#5D238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D238F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D238F#FFFFFF#000000##FFFFFF
##5D238F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#533E57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d238f;
/* rgb */ color: rgb(93, 35, 143);
/* oklch */ color: oklch(40.1% 0.168 304.1);
Tailwind
colors: {
  custom: {
    50: '#9064b1',
    500: '#5d238f',
    950: '#000000',
  },
}
SCSS
$custom: #5d238f;
$custom-light: #9064b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d238f",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 272.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40135,
    "c": 0.1678,
    "h": 304.1
  },
  "luminance": 0.05512
}

Semantic roles & 50–950 ramp

primary
#5D238F
secondary
#83BA54
accent
#E4448E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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