#5D239A#5D239A

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

Color values

HEX#5D239A
RGBrgb(93, 35, 154)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 60%)
CMYKcmyk(39.6%, 77.3%, 0%, 39.6%)
CIE-LABlab(29.06, 49.03, -54.05)
CIE-LCHlch(29.06, 72.98, 312.21°)
OKLaboklab(41.06% 0.0916 -0.1544)
OKLCHoklch(41.06% 0.179 300.7)
XYZxyz(10.9465, 5.8622, 31.1204)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D239A #609A23
analogous
#23249A #5D239A #99239A
triadic
#5D239A #9A5D23 #239A5D
tetradic
#5D239A #9A2324 #609A23 #239A99
square
#5D239A #9A2324 #609A23 #239A99
split-complementary
#5D239A #9A9923 #249A23
monochromatic
#210C36 #3F1868 #5D239A #7B2ECC #9A5DDA

Accessibility & contrast

On white

9.67
#5D239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D239A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D239A#FFFFFF#000000##FFFFFF
##5D239A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4F425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d239a;
/* rgb */ color: rgb(93, 35, 154);
/* oklch */ color: oklch(41.1% 0.179 300.7);
Tailwind
colors: {
  custom: {
    50: '#9164b9',
    500: '#5d239a',
    950: '#000000',
  },
}
SCSS
$custom: #5d239a;
$custom-light: #9164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d239a",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 269.244,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41064,
    "c": 0.17949,
    "h": 300.7
  },
  "luminance": 0.05862
}

Semantic roles & 50–950 ramp

primary
#5D239A
secondary
#8EBF5A
accent
#E64296
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D239A

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

Preview Lab → · Contrast checker → · Palette generator →

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