#5D239B#5D239B

#5D239B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.181 H 300.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5D239B
RGBrgb(93, 35, 155)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 61%)
CMYKcmyk(40%, 77.4%, 0%, 39.2%)
CIE-LABlab(29.15, 49.28, -54.52)
CIE-LCHlch(29.15, 73.49, 312.11°)
OKLaboklab(41.15% 0.0913 -0.1558)
OKLCHoklch(41.15% 0.181 300.4)
XYZxyz(11.0302, 5.8957, 31.5608)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D239B #619B23
analogous
#23259B #5D239B #99239B
triadic
#5D239B #9B5D23 #239B5D
tetradic
#5D239B #9B2325 #619B23 #239B99
square
#5D239B #9B2325 #619B23 #239B99
split-complementary
#5D239B #9B9923 #259B23
monochromatic
#210C37 #3F1869 #5D239B #7B2ECD #9A5EDB

Accessibility & contrast

On white

9.64
#5D239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5D239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D239B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D239B#FFFFFF#000000##FFFFFF
##5D239B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4F435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d239b;
/* rgb */ color: rgb(93, 35, 155);
/* oklch */ color: oklch(41.1% 0.181 300.4);
Tailwind
colors: {
  custom: {
    50: '#9165b9',
    500: '#5d239b',
    950: '#000000',
  },
}
SCSS
$custom: #5d239b;
$custom-light: #9165b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d239b",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 269,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4115,
    "c": 0.18055,
    "h": 300.4
  },
  "luminance": 0.05896
}

Semantic roles & 50–950 ramp

primary
#5D239B
secondary
#8FBF5A
accent
#E64297
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D239B

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

Preview Lab → · Contrast checker → · Palette generator →

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