#5A1267#5A1267

#5A1267 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.146 H 320.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5A1267
RGBrgb(90, 18, 103)
HSLhsl(291, 70%, 24%)
HSVhsv(291, 83%, 40%)
CMYKcmyk(12.6%, 82.5%, 0%, 59.6%)
CIE-LABlab(22.25, 43.51, -32.93)
CIE-LCHlch(22.25, 54.56, 322.88°)
OKLaboklab(34.91% 0.1135 -0.0923)
OKLCHoklch(34.91% 0.146 320.9)
XYZxyz(6.8807, 3.5859, 13.1591)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1267 #1F6712
analogous
#2F1267 #5A1267 #671249
triadic
#5A1267 #675A12 #12675A
tetradic
#5A1267 #672F12 #1F6712 #124967
square
#5A1267 #672F12 #1F6712 #124967
split-complementary
#5A1267 #496712 #12672F
monochromatic
#17051A #2C0933 #5A1267 #881B9B #B524CF

Accessibility & contrast

On white

12.23
#5A1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1267
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1267#FFFFFF#000000##FFFFFF
##5A12671.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#1C3865
Tritanopia (blue-blind)
#5B243C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1267;
/* rgb */ color: rgb(90, 18, 103);
/* oklch */ color: oklch(34.9% 0.146 320.9);
Tailwind
colors: {
  custom: {
    50: '#8c5a93',
    500: '#5a1267',
    950: '#000000',
  },
}
SCSS
$custom: #5a1267;
$custom-light: #8c5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1267",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 290.824,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.14632,
    "h": 320.9
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#5A1267
secondary
#469F36
accent
#ED3B56
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1267

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

Preview Lab → · Contrast checker → · Palette generator →

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