#5A1254#5A1254

#5A1254 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.130 H 331.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5A1254
RGBrgb(90, 18, 84)
HSLhsl(305, 67%, 21%)
HSVhsv(305, 80%, 35%)
CMYKcmyk(0%, 80%, 6.7%, 64.7%)
CIE-LABlab(21.01, 39.94, -22.32)
CIE-LCHlch(21.01, 45.75, 330.80°)
OKLaboklab(33.62% 0.1144 -0.0614)
OKLCHoklch(33.62% 0.13 331.8)
XYZxyz(6.0330, 3.2469, 8.6947)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1254 #125A18
analogous
#3C125A #5A1254 #5A1230
triadic
#5A1254 #545A12 #12545A
tetradic
#5A1254 #5A3C12 #125A18 #12305A
square
#5A1254 #5A3C12 #125A18 #12305A
split-complementary
#5A1254 #305A12 #125A3C
monochromatic
#1A0518 #270824 #5A1254 #8D1C84 #C026B3

Accessibility & contrast

On white

12.73
#5A1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1254
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1254#FFFFFF#000000##FFFFFF
##5A12541.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2C56
Deuteranopia (green-blind)
#293652
Tritanopia (blue-blind)
#5E1B32
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1254;
/* rgb */ color: rgb(90, 18, 84);
/* oklch */ color: oklch(33.6% 0.130 331.8);
Tailwind
colors: {
  custom: {
    50: '#8b5984',
    500: '#5a1254',
    950: '#000000',
  },
}
SCSS
$custom: #5a1254;
$custom-light: #8b5984;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1254",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 305,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3362,
    "c": 0.12985,
    "h": 331.8
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#5A1254
secondary
#35933D
accent
#EA4C3E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1254

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

Preview Lab → · Contrast checker → · Palette generator →

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