#5F259B#5F259B

#5F259B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.179 H 301.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5F259B
RGBrgb(95, 37, 155)
HSLhsl(269, 61%, 38%)
HSVhsv(269, 76%, 61%)
CMYKcmyk(38.7%, 76.1%, 0%, 39.2%)
CIE-LABlab(29.72, 48.76, -53.58)
CIE-LCHlch(29.72, 72.44, 312.31°)
OKLaboklab(41.61% 0.0925 -0.1529)
OKLCHoklch(41.61% 0.179 301.2)
XYZxyz(11.2958, 6.1225, 31.5906)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F259B #619B25
analogous
#25269B #5F259B #9A259B
triadic
#5F259B #9B5F25 #259B5F
tetradic
#5F259B #9B2526 #619B25 #259B9A
square
#5F259B #9B2526 #619B25 #259B9A
split-complementary
#5F259B #9B9A25 #269B25
monochromatic
#220D38 #41196A #5F259B #7D31CC #9C61D9

Accessibility & contrast

On white

9.44
#5F259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F259B
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F259B#FFFFFF#000000##FFFFFF
##5F259B1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f259b;
/* rgb */ color: rgb(95, 37, 155);
/* oklch */ color: oklch(41.6% 0.179 301.2);
Tailwind
colors: {
  custom: {
    50: '#9266b9',
    500: '#5f259b',
    950: '#000000',
  },
}
SCSS
$custom: #5f259b;
$custom-light: #9266b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f259b",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 269.492,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4161,
    "c": 0.17872,
    "h": 301.2
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#5F259B
secondary
#8FBF5D
accent
#E54395
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F259B

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

Preview Lab → · Contrast checker → · Palette generator →

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