#5F239E#5F239E

#5F239E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.184 H 300.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5F239E
RGBrgb(95, 35, 158)
HSLhsl(269, 64%, 38%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(39.9%, 77.8%, 0%, 38%)
CIE-LABlab(29.67, 50.37, -55.48)
CIE-LCHlch(29.67, 74.93, 312.23°)
OKLaboklab(41.66% 0.0935 -0.1585)
OKLCHoklch(41.66% 0.184 300.5)
XYZxyz(11.4904, 6.1035, 32.9138)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F239E #629E23
analogous
#23259E #5F239E #9C239E
triadic
#5F239E #9E5F23 #239E5F
tetradic
#5F239E #9E2325 #629E23 #239E9C
square
#5F239E #9E2325 #629E23 #239E9C
split-complementary
#5F239E #9E9C23 #259E23
monochromatic
#230D3A #41186C #5F239E #7D2ED0 #9C60DC

Accessibility & contrast

On white

9.46
#5F239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F239E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F239E#FFFFFF#000000##FFFFFF
##5F239E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#514460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f239e;
/* rgb */ color: rgb(95, 35, 158);
/* oklch */ color: oklch(41.7% 0.184 300.5);
Tailwind
colors: {
  custom: {
    50: '#9365bc',
    500: '#5f239e',
    950: '#000000',
  },
}
SCSS
$custom: #5f239e;
$custom-light: #9365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f239e",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 269.268,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41656,
    "c": 0.18404,
    "h": 300.5
  },
  "luminance": 0.06104
}

Semantic roles & 50–950 ramp

primary
#5F239E
secondary
#90C15C
accent
#E74196
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F239E

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

Preview Lab → · Contrast checker → · Palette generator →

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