#5A1265#5A1265

#5A1265 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.145 H 321.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5A1265
RGBrgb(90, 18, 101)
HSLhsl(292, 70%, 23%)
HSVhsv(292, 82%, 40%)
CMYKcmyk(10.9%, 82.2%, 0%, 60.4%)
CIE-LABlab(22.11, 43.11, -31.85)
CIE-LCHlch(22.11, 53.60, 323.54°)
OKLaboklab(34.76% 0.1137 -0.0892)
OKLCHoklch(34.76% 0.145 321.9)
XYZxyz(6.7815, 3.5462, 12.6367)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1265 #1D6512
analogous
#301265 #5A1265 #651246
triadic
#5A1265 #655A12 #12655A
tetradic
#5A1265 #653012 #1D6512 #124665
square
#5A1265 #653012 #1D6512 #124665
split-complementary
#5A1265 #466512 #126530
monochromatic
#17051A #2C0931 #5A1265 #881B99 #B725CD

Accessibility & contrast

On white

12.29
#5A1265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1265
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1265#FFFFFF#000000##FFFFFF
##5A12651.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#1E3863
Tritanopia (blue-blind)
#5B233B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1265;
/* rgb */ color: rgb(90, 18, 101);
/* oklch */ color: oklch(34.8% 0.145 321.9);
Tailwind
colors: {
  custom: {
    50: '#8c5a91',
    500: '#5a1265',
    950: '#000000',
  },
}
SCSS
$custom: #5a1265;
$custom-light: #8c5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1265",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 292.048,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34762,
    "c": 0.14453,
    "h": 321.9
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#5A1265
secondary
#449D36
accent
#ED3B53
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1265

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

Preview Lab → · Contrast checker → · Palette generator →

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