#5A23BC#5A23BC

#5A23BC is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.9% C 0.215 H 290.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5A23BC
RGBrgb(90, 35, 188)
HSLhsl(262, 69%, 44%)
HSVhsv(262, 81%, 74%)
CMYKcmyk(52.1%, 81.4%, 0%, 26.3%)
CIE-LABlab(31.82, 57.25, -69.96)
CIE-LCHlch(31.82, 90.40, 309.30°)
OKLaboklab(43.85% 0.0766 -0.2011)
OKLCHoklch(43.85% 0.215 290.8)
XYZxyz(13.8920, 7.0060, 48.1875)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23BC #85BC23
analogous
#2338BC #5A23BC #A623BC
triadic
#5A23BC #BC5A23 #23BC5A
tetradic
#5A23BC #BC2338 #85BC23 #23BCA6
square
#5A23BC #BC2338 #85BC23 #23BCA6
split-complementary
#5A23BC #BCA623 #38BC23
monochromatic
#291055 #411988 #5A23BC #7841DC #9D74E5

Accessibility & contrast

On white

8.74
#5A23BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5A23BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23BC
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23BC#FFFFFF#000000##FFFFFF
##5A23BC1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#365171
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a23bc;
/* rgb */ color: rgb(90, 35, 188);
/* oklch */ color: oklch(43.9% 0.215 290.8);
Tailwind
colors: {
  custom: {
    50: '#9366d1',
    500: '#5a23bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a23bc;
$custom-light: #9366d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23bc",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 188
  },
  "hsl": {
    "h": 261.569,
    "s": 68.61,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43854,
    "c": 0.21522,
    "h": 290.8
  },
  "luminance": 0.07007
}

Semantic roles & 50–950 ramp

primary
#5A23BC
secondary
#ABCC6F
accent
#EB3CAD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A23BC

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

Preview Lab → · Contrast checker → · Palette generator →

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