#5F259F#5F259F

#5F259F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.183 H 300.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5F259F
RGBrgb(95, 37, 159)
HSLhsl(269, 62%, 38%)
HSVhsv(269, 77%, 62%)
CMYKcmyk(40.3%, 76.7%, 0%, 37.6%)
CIE-LABlab(30.06, 49.76, -55.46)
CIE-LCHlch(30.06, 74.51, 311.90°)
OKLaboklab(41.95% 0.0915 -0.1585)
OKLCHoklch(41.95% 0.183 300)
XYZxyz(11.6373, 6.2591, 33.3892)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F259F #659F25
analogous
#25289F #5F259F #9C259F
triadic
#5F259F #9F5F25 #259F5F
tetradic
#5F259F #9F2528 #659F25 #259F9C
square
#5F259F #9F2528 #659F25 #259F9C
split-complementary
#5F259F #9F9C25 #289F25
monochromatic
#240E3C #41196D #5F259F #7D32CF #9C64DB

Accessibility & contrast

On white

9.33
#5F259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F259F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F259F#FFFFFF#000000##FFFFFF
##5F259F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#504561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f259f;
/* rgb */ color: rgb(95, 37, 159);
/* oklch */ color: oklch(42.0% 0.183 300.0);
Tailwind
colors: {
  custom: {
    50: '#9366bc',
    500: '#5f259f',
    950: '#000000',
  },
}
SCSS
$custom: #5f259f;
$custom-light: #9366bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f259f",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 268.525,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41952,
    "c": 0.18299,
    "h": 300
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#5F259F
secondary
#92C05F
accent
#E54298
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F259F

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

Preview Lab → · Contrast checker → · Palette generator →

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