#5F256A#5F256A

#5F256A is a dark, vivid purple. Relative luminance 0.048; OKLCH L 37.9% C 0.127 H 321.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5F256A
RGBrgb(95, 37, 106)
HSLhsl(290, 48%, 28%)
HSVhsv(290, 65%, 42%)
CMYKcmyk(10.4%, 65.1%, 0%, 58.4%)
CIE-LABlab(26.15, 37.28, -28.61)
CIE-LCHlch(26.15, 46.99, 322.50°)
OKLaboklab(37.93% 0.0983 -0.0797)
OKLCHoklch(37.93% 0.127 321)
XYZxyz(7.9821, 4.7970, 14.1383)
Luminance0.0480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F256A #306A25
analogous
#3C256A #5F256A #6A2552
triadic
#5F256A #6A5F25 #256A5F
tetradic
#5F256A #6A3C25 #306A25 #25526A
square
#5F256A #6A3C25 #306A25 #25526A
split-complementary
#5F256A #526A25 #256A3C
monochromatic
#140817 #36153D #5F256A #883597 #AD4AC0

Accessibility & contrast

On white

10.72
#5F256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F256A
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F256A#FFFFFF#000000##FFFFFF
##5F256A1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6C
Deuteranopia (green-blind)
#2C4068
Tritanopia (blue-blind)
#603044
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f256a;
/* rgb */ color: rgb(95, 37, 106);
/* oklch */ color: oklch(37.9% 0.127 321.0);
Tailwind
colors: {
  custom: {
    50: '#8f6495',
    500: '#5f256a',
    950: '#000000',
  },
}
SCSS
$custom: #5f256a;
$custom-light: #8f6495;
$custom-dark: #000000;
JSON
{
  "hex": "#5f256a",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 290.435,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.12653,
    "h": 321
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#5F256A
secondary
#5A9D4E
accent
#D85066
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F256A

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

Preview Lab → · Contrast checker → · Palette generator →

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