#5F259E#5F259E

#5F259E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.182 H 300.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5F259E
RGBrgb(95, 37, 158)
HSLhsl(269, 62%, 38%)
HSVhsv(269, 77%, 62%)
CMYKcmyk(39.9%, 76.6%, 0%, 38%)
CIE-LABlab(29.97, 49.51, -54.99)
CIE-LCHlch(29.97, 73.99, 312.00°)
OKLaboklab(41.87% 0.0918 -0.1571)
OKLCHoklch(41.87% 0.182 300.3)
XYZxyz(11.5509, 6.2245, 32.9340)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F259E #649E25
analogous
#25289E #5F259E #9B259E
triadic
#5F259E #9E5F25 #259E5F
tetradic
#5F259E #9E2528 #649E25 #259E9B
square
#5F259E #9E2528 #649E25 #259E9B
split-complementary
#5F259E #9E9B25 #289E25
monochromatic
#230E3B #41196C #5F259E #7D31CF #9C63DA

Accessibility & contrast

On white

9.35
#5F259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F259E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F259E#FFFFFF#000000##FFFFFF
##5F259E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#504560
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f259e;
/* rgb */ color: rgb(95, 37, 158);
/* oklch */ color: oklch(41.9% 0.182 300.3);
Tailwind
colors: {
  custom: {
    50: '#9266bc',
    500: '#5f259e',
    950: '#000000',
  },
}
SCSS
$custom: #5f259e;
$custom-light: #9266bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f259e",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 268.76,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41866,
    "c": 0.18192,
    "h": 300.3
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#5F259E
secondary
#91C05F
accent
#E54397
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F259E

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

Preview Lab → · Contrast checker → · Palette generator →

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