#5A1967#5A1967

#5A1967 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.138 H 320.4°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#5A1967
RGBrgb(90, 25, 103)
HSLhsl(290, 61%, 25%)
HSVhsv(290, 76%, 40%)
CMYKcmyk(12.6%, 75.7%, 0%, 59.6%)
CIE-LABlab(23.16, 40.89, -31.47)
CIE-LCHlch(23.16, 51.60, 322.42°)
OKLaboklab(35.56% 0.1065 -0.0881)
OKLCHoklch(35.56% 0.138 320.4)
XYZxyz(7.0120, 3.8486, 13.2028)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1967 #266719
analogous
#331967 #5A1967 #67194D
triadic
#5A1967 #675A19 #19675A
tetradic
#5A1967 #673319 #266719 #194D67
square
#5A1967 #673319 #266719 #194D67
split-complementary
#5A1967 #4D6719 #196733
monochromatic
#160619 #2F0D36 #5A1967 #852598 #B031C9

Accessibility & contrast

On white

11.87
#5A1967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1967
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1967#FFFFFF#000000##FFFFFF
##5A19671.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#213965
Tritanopia (blue-blind)
#5A283E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1967;
/* rgb */ color: rgb(90, 25, 103);
/* oklch */ color: oklch(35.6% 0.138 320.4);
Tailwind
colors: {
  custom: {
    50: '#8c5d93',
    500: '#5a1967',
    950: '#000000',
  },
}
SCSS
$custom: #5a1967;
$custom-light: #8c5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1967",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 290,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35555,
    "c": 0.13825,
    "h": 320.4
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#5A1967
secondary
#4F9D3F
accent
#E4445E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1967

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

Preview Lab → · Contrast checker → · Palette generator →

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