#5F23A0#5F23A0

#5F23A0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.186 H 300.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5F23A0
RGBrgb(95, 35, 160)
HSLhsl(269, 64%, 38%)
HSVhsv(269, 78%, 63%)
CMYKcmyk(40.6%, 78.1%, 0%, 37.3%)
CIE-LABlab(29.84, 50.86, -56.41)
CIE-LCHlch(29.84, 75.96, 312.04°)
OKLaboklab(41.83% 0.093 -0.1612)
OKLCHoklch(41.83% 0.186 300)
XYZxyz(11.6639, 6.1729, 33.8279)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23A0 #64A023
analogous
#2325A0 #5F23A0 #9D23A0
triadic
#5F23A0 #A05F23 #23A05F
tetradic
#5F23A0 #A02325 #64A023 #23A09D
square
#5F23A0 #A02325 #64A023 #23A09D
split-complementary
#5F23A0 #A09D23 #25A023
monochromatic
#230D3C #41186E #5F23A0 #7D2FD1 #9C61DC

Accessibility & contrast

On white

9.40
#5F23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23A0
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23A0#FFFFFF#000000##FFFFFF
##5F23A01.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#504461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f23a0;
/* rgb */ color: rgb(95, 35, 160);
/* oklch */ color: oklch(41.8% 0.186 300.0);
Tailwind
colors: {
  custom: {
    50: '#9365bd',
    500: '#5f23a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f23a0;
$custom-light: #9365bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23a0",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 268.8,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4183,
    "c": 0.18614,
    "h": 300
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#5F23A0
secondary
#91C15D
accent
#E74197
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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