#5D23A0#5D23A0

#5D23A0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.186 H 299.0°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5D23A0
RGBrgb(93, 35, 160)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 63%)
CMYKcmyk(41.9%, 78.1%, 0%, 37.3%)
CIE-LABlab(29.58, 50.53, -56.86)
CIE-LCHlch(29.58, 76.07, 311.63°)
OKLaboklab(41.59% 0.09 -0.1626)
OKLCHoklch(41.59% 0.186 299)
XYZxyz(11.4588, 6.0671, 33.8182)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D23A0 #66A023
analogous
#2327A0 #5D23A0 #9B23A0
triadic
#5D23A0 #A05D23 #23A05D
tetradic
#5D23A0 #A02327 #66A023 #23A09B
square
#5D23A0 #A02327 #66A023 #23A09B
split-complementary
#5D23A0 #A09B23 #27A023
monochromatic
#230D3C #40186E #5D23A0 #7A2FD1 #9A61DC

Accessibility & contrast

On white

9.49
#5D23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D23A0
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D23A0#FFFFFF#000000##FFFFFF
##5D23A01.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#4D4561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d23a0;
/* rgb */ color: rgb(93, 35, 160);
/* oklch */ color: oklch(41.6% 0.186 299.0);
Tailwind
colors: {
  custom: {
    50: '#9265bd',
    500: '#5d23a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d23a0;
$custom-light: #9265bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d23a0",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 267.84,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41588,
    "c": 0.18585,
    "h": 299
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#5D23A0
secondary
#93C15D
accent
#E7419A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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