#5D23A7#5D23A7

#5D23A7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.193 H 297.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5D23A7
RGBrgb(93, 35, 167)
HSLhsl(266, 65%, 40%)
HSVhsv(266, 79%, 65%)
CMYKcmyk(44.3%, 79%, 0%, 34.5%)
CIE-LABlab(30.20, 52.29, -60.07)
CIE-LCHlch(30.20, 79.65, 311.04°)
OKLaboklab(42.21% 0.088 -0.1721)
OKLCHoklch(42.21% 0.193 297.1)
XYZxyz(12.0884, 6.3190, 37.1345)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D23A7 #6DA723
analogous
#232BA7 #5D23A7 #9F23A7
triadic
#5D23A7 #A75D23 #23A75D
tetradic
#5D23A7 #A7232B #6DA723 #23A79F
square
#5D23A7 #A7232B #6DA723 #23A79F
split-complementary
#5D23A7 #A79F23 #2BA723
monochromatic
#250E42 #411874 #5D23A7 #7A33D4 #9B66DF

Accessibility & contrast

On white

9.28
#5D23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D23A7
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D23A7#FFFFFF#000000##FFFFFF
##5D23A71.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#494865
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d23a7;
/* rgb */ color: rgb(93, 35, 167);
/* oklch */ color: oklch(42.2% 0.193 297.1);
Tailwind
colors: {
  custom: {
    50: '#9265c2',
    500: '#5d23a7',
    950: '#000000',
  },
}
SCSS
$custom: #5d23a7;
$custom-light: #9265c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d23a7",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 266.364,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42214,
    "c": 0.19324,
    "h": 297.1
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#5D23A7
secondary
#99C461
accent
#E83F9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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