#5D23A6#5D23A6

#5D23A6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.192 H 297.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5D23A6
RGBrgb(93, 35, 166)
HSLhsl(267, 65%, 39%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(44%, 78.9%, 0%, 34.9%)
CIE-LABlab(30.11, 52.04, -59.62)
CIE-LCHlch(30.11, 79.14, 311.12°)
OKLaboklab(42.12% 0.0883 -0.1707)
OKLCHoklch(42.12% 0.192 297.3)
XYZxyz(11.9964, 6.2822, 36.6495)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D23A6 #6CA623
analogous
#232BA6 #5D23A6 #9F23A6
triadic
#5D23A6 #A65D23 #23A65D
tetradic
#5D23A6 #A6232B #6CA623 #23A69F
square
#5D23A6 #A6232B #6CA623 #23A69F
split-complementary
#5D23A6 #A69F23 #2BA623
monochromatic
#240E41 #411873 #5D23A6 #7A32D4 #9B65DF

Accessibility & contrast

On white

9.31
#5D23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D23A6
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D23A6#FFFFFF#000000##FFFFFF
##5D23A61.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4A4764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d23a6;
/* rgb */ color: rgb(93, 35, 166);
/* oklch */ color: oklch(42.1% 0.192 297.3);
Tailwind
colors: {
  custom: {
    50: '#9265c1',
    500: '#5d23a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d23a6;
$custom-light: #9265c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d23a6",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 266.565,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.19219,
    "h": 297.3
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#5D23A6
secondary
#98C461
accent
#E8409E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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