#5F23AC#5F23AC

#5F23AC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.9% C 0.199 H 296.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5F23AC
RGBrgb(95, 35, 172)
HSLhsl(266, 66%, 41%)
HSVhsv(266, 80%, 67%)
CMYKcmyk(44.8%, 79.7%, 0%, 32.5%)
CIE-LABlab(30.91, 53.86, -61.91)
CIE-LCHlch(30.91, 82.06, 311.02°)
OKLaboklab(42.9% 0.0895 -0.1774)
OKLCHoklch(42.9% 0.199 296.8)
XYZxyz(12.7648, 6.6132, 39.6257)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23AC #70AC23
analogous
#232CAC #5F23AC #A323AC
triadic
#5F23AC #AC5F23 #23AC5F
tetradic
#5F23AC #AC232C #70AC23 #23ACA3
square
#5F23AC #AC232C #70AC23 #23ACA3
split-complementary
#5F23AC #ACA323 #2CAC23
monochromatic
#270E46 #431979 #5F23AC #7C36D6 #9D69E0

Accessibility & contrast

On white

9.04
#5F23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23AC
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23AC#FFFFFF#000000##FFFFFF
##5F23AC1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#4A4A68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f23ac;
/* rgb */ color: rgb(95, 35, 172);
/* oklch */ color: oklch(42.9% 0.199 296.8);
Tailwind
colors: {
  custom: {
    50: '#9466c6',
    500: '#5f23ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f23ac;
$custom-light: #9466c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23ac",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 266.277,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.429,
    "c": 0.19868,
    "h": 296.8
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#5F23AC
secondary
#9BC664
accent
#E93F9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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