#5D23B1#5D23B1

#5D23B1 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.204 H 294.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5D23B1
RGBrgb(93, 35, 177)
HSLhsl(265, 67%, 42%)
HSVhsv(265, 80%, 69%)
CMYKcmyk(47.5%, 80.2%, 0%, 30.6%)
CIE-LABlab(31.12, 54.83, -64.57)
CIE-LCHlch(31.12, 84.71, 310.34°)
OKLaboklab(43.13% 0.0849 -0.1852)
OKLCHoklch(43.13% 0.204 294.6)
XYZxyz(13.0489, 6.7032, 42.1928)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D23B1 #77B123
analogous
#2330B1 #5D23B1 #A423B1
triadic
#5D23B1 #B15D23 #23B15D
tetradic
#5D23B1 #B12330 #77B123 #23B1A4
square
#5D23B1 #B12330 #77B123 #23B1A4
split-complementary
#5D23B1 #B1A423 #30B123
monochromatic
#270F4B #42197E #5D23B1 #7A39D8 #9C6CE2

Accessibility & contrast

On white

8.97
#5D23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D23B1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D23B1#FFFFFF#000000##FFFFFF
##5D23B11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#444C6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d23b1;
/* rgb */ color: rgb(93, 35, 177);
/* oklch */ color: oklch(43.1% 0.204 294.6);
Tailwind
colors: {
  custom: {
    50: '#9466c9',
    500: '#5d23b1',
    950: '#000000',
  },
}
SCSS
$custom: #5d23b1;
$custom-light: #9466c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d23b1",
  "rgb": {
    "r": 93,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 264.507,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43132,
    "c": 0.20376,
    "h": 294.6
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#5D23B1
secondary
#A1C868
accent
#EA3EA4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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