#5F23B1#5F23B1

#5F23B1 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.4% C 0.204 H 295.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5F23B1
RGBrgb(95, 35, 177)
HSLhsl(265, 67%, 42%)
HSVhsv(265, 80%, 69%)
CMYKcmyk(46.3%, 80.2%, 0%, 30.6%)
CIE-LABlab(31.37, 55.11, -64.15)
CIE-LCHlch(31.37, 84.57, 310.66°)
OKLaboklab(43.36% 0.0879 -0.184)
OKLCHoklch(43.36% 0.204 295.5)
XYZxyz(13.2540, 6.8089, 42.2024)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23B1 #75B123
analogous
#232EB1 #5F23B1 #A623B1
triadic
#5F23B1 #B15F23 #23B15F
tetradic
#5F23B1 #B1232E #75B123 #23B1A6
square
#5F23B1 #B1232E #75B123 #23B1A6
split-complementary
#5F23B1 #B1A623 #2EB123
monochromatic
#280F4B #44197E #5F23B1 #7C39D8 #9E6CE2

Accessibility & contrast

On white

8.89
#5F23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23B1
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23B1#FFFFFF#000000##FFFFFF
##5F23B11.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#474C6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f23b1;
/* rgb */ color: rgb(95, 35, 177);
/* oklch */ color: oklch(43.4% 0.204 295.5);
Tailwind
colors: {
  custom: {
    50: '#9566c9',
    500: '#5f23b1',
    950: '#000000',
  },
}
SCSS
$custom: #5f23b1;
$custom-light: #9566c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23b1",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 265.352,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43358,
    "c": 0.20389,
    "h": 295.5
  },
  "luminance": 0.06809
}

Semantic roles & 50–950 ramp

primary
#5F23B1
secondary
#9FC868
accent
#EA3EA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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