#5F239F#5F239F

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

Color values

HEX#5F239F
RGBrgb(95, 35, 159)
HSLhsl(269, 64%, 38%)
HSVhsv(269, 78%, 62%)
CMYKcmyk(40.3%, 78%, 0%, 37.6%)
CIE-LABlab(29.76, 50.62, -55.95)
CIE-LCHlch(29.76, 75.45, 312.14°)
OKLaboklab(41.74% 0.0933 -0.1599)
OKLCHoklch(41.74% 0.185 300.3)
XYZxyz(11.5768, 6.1380, 33.3690)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F239F #639F23
analogous
#23259F #5F239F #9D239F
triadic
#5F239F #9F5F23 #239F5F
tetradic
#5F239F #9F2325 #639F23 #239F9D
square
#5F239F #9F2325 #639F23 #239F9D
split-complementary
#5F239F #9F9D23 #259F23
monochromatic
#230D3B #41186D #5F239F #7D2ED1 #9C60DC

Accessibility & contrast

On white

9.43
#5F239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F239F
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F239F#FFFFFF#000000##FFFFFF
##5F239F1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#504460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f239f;
/* rgb */ color: rgb(95, 35, 159);
/* oklch */ color: oklch(41.7% 0.185 300.3);
Tailwind
colors: {
  custom: {
    50: '#9365bc',
    500: '#5f239f',
    950: '#000000',
  },
}
SCSS
$custom: #5f239f;
$custom-light: #9365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f239f",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 269.032,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41742,
    "c": 0.1851,
    "h": 300.3
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#5F239F
secondary
#91C15D
accent
#E74197
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F239F

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

Preview Lab → · Contrast checker → · Palette generator →

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