#5D239C#5D239C

#5D239C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.182 H 300.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5D239C
RGBrgb(93, 35, 156)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 78%, 61%)
CMYKcmyk(40.4%, 77.6%, 0%, 38.8%)
CIE-LABlab(29.23, 49.53, -54.99)
CIE-LCHlch(29.23, 74.01, 312.01°)
OKLaboklab(41.24% 0.0911 -0.1571)
OKLCHoklch(41.24% 0.182 300.1)
XYZxyz(11.1145, 5.9294, 32.0050)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D239C #629C23
analogous
#23269C #5D239C #99239C
triadic
#5D239C #9C5D23 #239C5D
tetradic
#5D239C #9C2326 #629C23 #239C99
square
#5D239C #9C2326 #629C23 #239C99
split-complementary
#5D239C #9C9923 #269C23
monochromatic
#210D38 #3F186A #5D239C #7B2ECE #9A5EDB

Accessibility & contrast

On white

9.61
#5D239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5D239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D239C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D239C#FFFFFF#000000##FFFFFF
##5D239C1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#4E435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d239c;
/* rgb */ color: rgb(93, 35, 156);
/* oklch */ color: oklch(41.2% 0.182 300.1);
Tailwind
colors: {
  custom: {
    50: '#9165ba',
    500: '#5d239c',
    950: '#000000',
  },
}
SCSS
$custom: #5d239c;
$custom-light: #9165ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d239c",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 268.76,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41237,
    "c": 0.18161,
    "h": 300.1
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#5D239C
secondary
#8FC05B
accent
#E64197
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D239C

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

Preview Lab → · Contrast checker → · Palette generator →

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