#5F23A4#5F23A4

#5F23A4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.190 H 298.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5F23A4
RGBrgb(95, 35, 164)
HSLhsl(268, 65%, 39%)
HSVhsv(268, 79%, 64%)
CMYKcmyk(42.1%, 78.7%, 0%, 35.7%)
CIE-LABlab(30.19, 51.86, -58.27)
CIE-LCHlch(30.19, 78.00, 311.67°)
OKLaboklab(42.18% 0.0919 -0.1667)
OKLCHoklch(42.18% 0.19 298.9)
XYZxyz(12.0195, 6.3151, 35.7004)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F23A4 #68A423
analogous
#2328A4 #5F23A4 #A023A4
triadic
#5F23A4 #A45F23 #23A45F
tetradic
#5F23A4 #A42328 #68A423 #23A4A0
square
#5F23A4 #A42328 #68A423 #23A4A0
split-complementary
#5F23A4 #A4A023 #28A423
monochromatic
#250D3F #421872 #5F23A4 #7C31D3 #9C64DE

Accessibility & contrast

On white

9.28
#5F23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F23A4
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F23A4#FFFFFF#000000##FFFFFF
##5F23A41.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#4E4663
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f23a4;
/* rgb */ color: rgb(95, 35, 164);
/* oklch */ color: oklch(42.2% 0.190 298.9);
Tailwind
colors: {
  custom: {
    50: '#9365c0',
    500: '#5f23a4',
    950: '#000000',
  },
}
SCSS
$custom: #5f23a4;
$custom-light: #9365c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f23a4",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 267.907,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42182,
    "c": 0.19033,
    "h": 298.9
  },
  "luminance": 0.06315
}

Semantic roles & 50–950 ramp

primary
#5F23A4
secondary
#95C360
accent
#E8409A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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