#5A1256#5A1256

#5A1256 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.132 H 330.5°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#5A1256
RGBrgb(90, 18, 86)
HSLhsl(303, 67%, 21%)
HSVhsv(303, 80%, 35%)
CMYKcmyk(0%, 80%, 4.4%, 64.7%)
CIE-LABlab(21.13, 40.29, -23.47)
CIE-LCHlch(21.13, 46.63, 329.78°)
OKLaboklab(33.75% 0.1145 -0.0648)
OKLCHoklch(33.75% 0.132 330.5)
XYZxyz(6.1125, 3.2786, 9.1132)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1256 #125A16
analogous
#3A125A #5A1256 #5A1232
triadic
#5A1256 #565A12 #12565A
tetradic
#5A1256 #5A3A12 #125A16 #12325A
square
#5A1256 #5A3A12 #125A16 #12325A
split-complementary
#5A1256 #325A12 #125A3A
monochromatic
#1A0518 #270825 #5A1256 #8D1C87 #C026B7

Accessibility & contrast

On white

12.68
#5A1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1256
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1256#FFFFFF#000000##FFFFFF
##5A12561.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C58
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#5E1C33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1256;
/* rgb */ color: rgb(90, 18, 86);
/* oklch */ color: oklch(33.7% 0.132 330.5);
Tailwind
colors: {
  custom: {
    50: '#8b5986',
    500: '#5a1256',
    950: '#000000',
  },
}
SCSS
$custom: #5a1256;
$custom-light: #8b5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1256",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 303.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.13151,
    "h": 330.5
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#5A1256
secondary
#35933A
accent
#EA483E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1256

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

Preview Lab → · Contrast checker → · Palette generator →

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