#5F23A7#5F23A7

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

Color values

HEX#5F23A7
RGBrgb(95, 35, 167)
HSLhsl(267, 65%, 40%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(43.1%, 79%, 0%, 34.5%)
CIE-LABlab(30.46, 52.60, -59.64)
CIE-LCHlch(30.46, 79.53, 311.41°)
OKLaboklab(42.45% 0.091 -0.1707)
OKLCHoklch(42.45% 0.193 298.1)
XYZxyz(12.2936, 6.4248, 37.1441)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23A7 #6BA723
analogous
#2329A7 #5F23A7 #A123A7
triadic
#5F23A7 #A75F23 #23A75F
tetradic
#5F23A7 #A72329 #6BA723 #23A7A1
square
#5F23A7 #A72329 #6BA723 #23A7A1
split-complementary
#5F23A7 #A7A123 #29A723
monochromatic
#250E42 #421874 #5F23A7 #7C33D4 #9D66DF

Accessibility & contrast

On white

9.19
#5F23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5F23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23A7
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23A7#FFFFFF#000000##FFFFFF
##5F23A71.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#4D4765
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f23a7;
/* rgb */ color: rgb(95, 35, 167);
/* oklch */ color: oklch(42.4% 0.193 298.1);
Tailwind
colors: {
  custom: {
    50: '#9465c2',
    500: '#5f23a7',
    950: '#000000',
  },
}
SCSS
$custom: #5f23a7;
$custom-light: #9465c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23a7",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 267.273,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42449,
    "c": 0.19346,
    "h": 298.1
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#5F23A7
secondary
#97C461
accent
#E83F9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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