#5F23AF#5F23AF

#5F23AF is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.2% C 0.202 H 296.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5F23AF
RGBrgb(95, 35, 175)
HSLhsl(266, 67%, 41%)
HSVhsv(266, 80%, 69%)
CMYKcmyk(45.7%, 80%, 0%, 31.4%)
CIE-LABlab(31.18, 54.61, -63.26)
CIE-LCHlch(31.18, 83.57, 310.80°)
OKLaboklab(43.17% 0.0886 -0.1813)
OKLCHoklch(43.17% 0.202 296)
XYZxyz(13.0561, 6.7298, 41.1602)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23AF #73AF23
analogous
#232DAF #5F23AF #A523AF
triadic
#5F23AF #AF5F23 #23AF5F
tetradic
#5F23AF #AF232D #73AF23 #23AFA5
square
#5F23AF #AF232D #73AF23 #23AFA5
split-complementary
#5F23AF #AFA523 #2DAF23
monochromatic
#280F49 #43197C #5F23AF #7C38D7 #9E6BE1

Accessibility & contrast

On white

8.95
#5F23AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F23AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23AF
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23AF#FFFFFF#000000##FFFFFF
##5F23AF1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#494B69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f23af;
/* rgb */ color: rgb(95, 35, 175);
/* oklch */ color: oklch(43.2% 0.202 296.0);
Tailwind
colors: {
  custom: {
    50: '#9566c8',
    500: '#5f23af',
    950: '#000000',
  },
}
SCSS
$custom: #5f23af;
$custom-light: #9566c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23af",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 175
  },
  "hsl": {
    "h": 265.714,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43174,
    "c": 0.20181,
    "h": 296
  },
  "luminance": 0.0673
}

Semantic roles & 50–950 ramp

primary
#5F23AF
secondary
#9EC766
accent
#EA3EA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F23AF

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

Preview Lab → · Contrast checker → · Palette generator →

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