#5D239E#5D239E

#5D239E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.184 H 299.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5D239E
RGBrgb(93, 35, 158)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(41.1%, 77.8%, 0%, 38%)
CIE-LABlab(29.41, 50.03, -55.93)
CIE-LCHlch(29.41, 75.04, 311.82°)
OKLaboklab(41.41% 0.0905 -0.1599)
OKLCHoklch(41.41% 0.184 299.5)
XYZxyz(11.2852, 5.9977, 32.9042)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D239E #649E23
analogous
#23269E #5D239E #9B239E
triadic
#5D239E #9E5D23 #239E5D
tetradic
#5D239E #9E2326 #649E23 #239E9B
square
#5D239E #9E2326 #649E23 #239E9B
split-complementary
#5D239E #9E9B23 #269E23
monochromatic
#220D3A #40186C #5D239E #7A2ED0 #9A60DC

Accessibility & contrast

On white

9.55
#5D239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D239E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D239E#FFFFFF#000000##FFFFFF
##5D239E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4D4460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d239e;
/* rgb */ color: rgb(93, 35, 158);
/* oklch */ color: oklch(41.4% 0.184 299.5);
Tailwind
colors: {
  custom: {
    50: '#9165bc',
    500: '#5d239e',
    950: '#000000',
  },
}
SCSS
$custom: #5d239e;
$custom-light: #9165bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d239e",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 268.293,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41412,
    "c": 0.18374,
    "h": 299.5
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#5D239E
secondary
#91C15C
accent
#E74199
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D239E

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

Preview Lab → · Contrast checker → · Palette generator →

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