#5F256C#5F256C

#5F256C is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.129 H 319.9°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5F256C
RGBrgb(95, 37, 108)
HSLhsl(289, 49%, 28%)
HSVhsv(289, 66%, 42%)
CMYKcmyk(12%, 65.7%, 0%, 57.6%)
CIE-LABlab(26.27, 37.71, -29.70)
CIE-LCHlch(26.27, 48.00, 321.78°)
OKLaboklab(38.06% 0.0983 -0.0829)
OKLCHoklch(38.06% 0.129 319.9)
XYZxyz(8.0873, 4.8391, 14.6925)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F256C #326C25
analogous
#3B256C #5F256C #6C2555
triadic
#5F256C #6C5F25 #256C5F
tetradic
#5F256C #6C3B25 #326C25 #25556C
square
#5F256C #6C3B25 #326C25 #25556C
split-complementary
#5F256C #556C25 #256C3B
monochromatic
#140817 #37153E #5F256C #87359A #AB4AC1

Accessibility & contrast

On white

10.67
#5F256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F256C
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F256C#FFFFFF#000000##FFFFFF
##5F256C1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123A6E
Deuteranopia (green-blind)
#2B406A
Tritanopia (blue-blind)
#5F3145
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f256c;
/* rgb */ color: rgb(95, 37, 108);
/* oklch */ color: oklch(38.1% 0.129 319.9);
Tailwind
colors: {
  custom: {
    50: '#8f6496',
    500: '#5f256c',
    950: '#000000',
  },
}
SCSS
$custom: #5f256c;
$custom-light: #8f6496;
$custom-dark: #000000;
JSON
{
  "hex": "#5f256c",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 289.014,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38059,
    "c": 0.1286,
    "h": 319.9
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#5F256C
secondary
#5D9F4E
accent
#D94F68
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F256C

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

Preview Lab → · Contrast checker → · Palette generator →

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