#5F239B#5F239B

#5F239B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.181 H 301.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5F239B
RGBrgb(95, 35, 155)
HSLhsl(270, 63%, 37%)
HSVhsv(270, 77%, 61%)
CMYKcmyk(38.7%, 77.4%, 0%, 39.2%)
CIE-LABlab(29.42, 49.63, -54.07)
CIE-LCHlch(29.42, 73.39, 312.55°)
OKLaboklab(41.4% 0.0943 -0.1544)
OKLCHoklch(41.4% 0.181 301.4)
XYZxyz(11.2353, 6.0015, 31.5705)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F239B #5F9B23
analogous
#23239B #5F239B #9B239B
triadic
#5F239B #9B5F23 #239B5F
tetradic
#5F239B #9B2323 #5F9B23 #239B9B
square
#5F239B #9B2323 #5F9B23 #239B9B
split-complementary
#5F239B #9B9B23 #239B23
monochromatic
#220C37 #401869 #5F239B #7E2ECD #9C5EDB

Accessibility & contrast

On white

9.54
#5F239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F239B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F239B#FFFFFF#000000##FFFFFF
##5F239B1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#52425E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f239b;
/* rgb */ color: rgb(95, 35, 155);
/* oklch */ color: oklch(41.4% 0.181 301.4);
Tailwind
colors: {
  custom: {
    50: '#9265b9',
    500: '#5f239b',
    950: '#000000',
  },
}
SCSS
$custom: #5f239b;
$custom-light: #9265b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f239b",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 270,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41397,
    "c": 0.18089,
    "h": 301.4
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#5F239B
secondary
#8DBF5A
accent
#E64294
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F239B

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

Preview Lab → · Contrast checker → · Palette generator →

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