#5F23A6#5F23A6

#5F23A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.192 H 298.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5F23A6
RGBrgb(95, 35, 166)
HSLhsl(267, 65%, 39%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(42.8%, 78.9%, 0%, 34.9%)
CIE-LABlab(30.37, 52.36, -59.19)
CIE-LCHlch(30.37, 79.02, 311.50°)
OKLaboklab(42.36% 0.0913 -0.1694)
OKLCHoklch(42.36% 0.192 298.3)
XYZxyz(12.2015, 6.3879, 36.6591)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23A6 #6AA623
analogous
#2329A6 #5F23A6 #A123A6
triadic
#5F23A6 #A65F23 #23A65F
tetradic
#5F23A6 #A62329 #6AA623 #23A6A1
square
#5F23A6 #A62329 #6AA623 #23A6A1
split-complementary
#5F23A6 #A6A123 #29A623
monochromatic
#250E41 #421873 #5F23A6 #7C32D4 #9D65DF

Accessibility & contrast

On white

9.22
#5F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23A6
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23A6#FFFFFF#000000##FFFFFF
##5F23A61.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#4D4764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f23a6;
/* rgb */ color: rgb(95, 35, 166);
/* oklch */ color: oklch(42.4% 0.192 298.3);
Tailwind
colors: {
  custom: {
    50: '#9365c1',
    500: '#5f23a6',
    950: '#000000',
  },
}
SCSS
$custom: #5f23a6;
$custom-light: #9365c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23a6",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 267.481,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42359,
    "c": 0.19242,
    "h": 298.3
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#5F23A6
secondary
#97C461
accent
#E8409B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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