#5F259D#5F259D

#5F259D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.181 H 300.6°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5F259D
RGBrgb(95, 37, 157)
HSLhsl(269, 62%, 38%)
HSVhsv(269, 76%, 62%)
CMYKcmyk(39.5%, 76.4%, 0%, 38.4%)
CIE-LABlab(29.89, 49.26, -54.52)
CIE-LCHlch(29.89, 73.48, 312.10°)
OKLaboklab(41.78% 0.092 -0.1557)
OKLCHoklch(41.78% 0.181 300.6)
XYZxyz(11.4652, 6.1903, 32.4826)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F259D #639D25
analogous
#25279D #5F259D #9B259D
triadic
#5F259D #9D5F25 #259D5F
tetradic
#5F259D #9D2527 #639D25 #259D9B
square
#5F259D #9D2527 #639D25 #259D9B
split-complementary
#5F259D #9D9B25 #279D25
monochromatic
#230E3A #41196B #5F259D #7D31CE #9C62DA

Accessibility & contrast

On white

9.38
#5F259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F259D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F259D#FFFFFF#000000##FFFFFF
##5F259D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#514460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f259d;
/* rgb */ color: rgb(95, 37, 157);
/* oklch */ color: oklch(41.8% 0.181 300.6);
Tailwind
colors: {
  custom: {
    50: '#9266bb',
    500: '#5f259d',
    950: '#000000',
  },
}
SCSS
$custom: #5f259d;
$custom-light: #9266bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f259d",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 269,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4178,
    "c": 0.18086,
    "h": 300.6
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F259D

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

Preview Lab → · Contrast checker → · Palette generator →

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