#5D239F#5D239F

#5D239F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.185 H 299.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5D239F
RGBrgb(93, 35, 159)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(41.5%, 78%, 0%, 37.6%)
CIE-LABlab(29.49, 50.28, -56.39)
CIE-LCHlch(29.49, 75.55, 311.72°)
OKLaboklab(41.5% 0.0903 -0.1613)
OKLCHoklch(41.5% 0.185 299.2)
XYZxyz(11.3717, 6.0323, 33.3594)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D239F #659F23
analogous
#23279F #5D239F #9B239F
triadic
#5D239F #9F5D23 #239F5D
tetradic
#5D239F #9F2327 #659F23 #239F9B
square
#5D239F #9F2327 #659F23 #239F9B
split-complementary
#5D239F #9F9B23 #279F23
monochromatic
#220D3B #40186D #5D239F #7A2ED1 #9A60DC

Accessibility & contrast

On white

9.52
#5D239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D239F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D239F#FFFFFF#000000##FFFFFF
##5D239F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d239f;
/* rgb */ color: rgb(93, 35, 159);
/* oklch */ color: oklch(41.5% 0.185 299.2);
Tailwind
colors: {
  custom: {
    50: '#9165bc',
    500: '#5d239f',
    950: '#000000',
  },
}
SCSS
$custom: #5d239f;
$custom-light: #9165bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d239f",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 268.065,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.415,
    "c": 0.1848,
    "h": 299.2
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

primary
#5D239F
secondary
#92C15D
accent
#E74199
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D239F

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

Preview Lab → · Contrast checker → · Palette generator →

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