#5A0F5F#5A0F5F

#5A0F5F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.142 H 325.3°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#5A0F5F
RGBrgb(90, 15, 95)
HSLhsl(296, 73%, 22%)
HSVhsv(296, 84%, 37%)
CMYKcmyk(5.3%, 84.2%, 0%, 62.7%)
CIE-LABlab(21.36, 42.92, -29.09)
CIE-LCHlch(21.36, 51.85, 325.87°)
OKLaboklab(34.1% 0.1169 -0.0811)
OKLCHoklch(34.1% 0.142 325.3)
XYZxyz(6.4527, 3.3420, 11.1295)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F5F #145F0F
analogous
#320F5F #5A0F5F #5F0F3C
triadic
#5A0F5F #5F5A0F #0F5F5A
tetradic
#5A0F5F #5F320F #145F0F #0F3C5F
square
#5A0F5F #5F320F #145F0F #0F3C5F
split-complementary
#5A0F5F #3C5F0F #0F5F32
monochromatic
#19041A #28072A #5A0F5F #8C1794 #BE20C9

Accessibility & contrast

On white

12.59
#5A0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F5F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F5F#FFFFFF#000000##FFFFFF
##5A0F5F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#5C1E37
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a0f5f;
/* rgb */ color: rgb(90, 15, 95);
/* oklch */ color: oklch(34.1% 0.142 325.3);
Tailwind
colors: {
  custom: {
    50: '#8c588d',
    500: '#5a0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f5f;
$custom-light: #8c588d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f5f",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 296.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34101,
    "c": 0.1423,
    "h": 325.3
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#5A0F5F
secondary
#389832
accent
#EF3844
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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