#5A1255#5A1255

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

Color values

HEX#5A1255
RGBrgb(90, 18, 85)
HSLhsl(304, 67%, 21%)
HSVhsv(304, 80%, 35%)
CMYKcmyk(0%, 80%, 5.6%, 64.7%)
CIE-LABlab(21.07, 40.12, -22.90)
CIE-LCHlch(21.07, 46.19, 330.28°)
OKLaboklab(33.68% 0.1144 -0.0631)
OKLCHoklch(33.68% 0.131 331.1)
XYZxyz(6.0724, 3.2626, 8.9025)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1255 #125A17
analogous
#3B125A #5A1255 #5A1231
triadic
#5A1255 #555A12 #12555A
tetradic
#5A1255 #5A3B12 #125A17 #12315A
square
#5A1255 #5A3B12 #125A17 #12315A
split-complementary
#5A1255 #315A12 #125A3B
monochromatic
#1A0518 #270825 #5A1255 #8D1C85 #C026B5

Accessibility & contrast

On white

12.71
#5A1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1255
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1255#FFFFFF#000000##FFFFFF
##5A12551.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C57
Deuteranopia (green-blind)
#293653
Tritanopia (blue-blind)
#5E1B32
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1255;
/* rgb */ color: rgb(90, 18, 85);
/* oklch */ color: oklch(33.7% 0.131 331.1);
Tailwind
colors: {
  custom: {
    50: '#8b5985',
    500: '#5a1255',
    950: '#000000',
  },
}
SCSS
$custom: #5a1255;
$custom-light: #8b5985;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1255",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 304.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33683,
    "c": 0.13068,
    "h": 331.1
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#5A1255
secondary
#35933C
accent
#EA4A3E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1255

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

Preview Lab → · Contrast checker → · Palette generator →

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