#5A2696#5A2696

#5A2696 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.171 H 299.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5A2696
RGBrgb(90, 38, 150)
HSLhsl(268, 60%, 37%)
HSVhsv(268, 75%, 59%)
CMYKcmyk(40%, 74.7%, 0%, 41.2%)
CIE-LABlab(28.80, 46.13, -52.04)
CIE-LCHlch(28.80, 69.54, 311.56°)
OKLaboklab(40.69% 0.0853 -0.1486)
OKLCHoklch(40.69% 0.171 299.8)
XYZxyz(10.4132, 5.7618, 29.4118)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2696 #629626
analogous
#262A96 #5A2696 #922696
triadic
#5A2696 #965A26 #26965A
tetradic
#5A2696 #96262A #629626 #269692
square
#5A2696 #96262A #629626 #269692
split-complementary
#5A2696 #969226 #2A9626
monochromatic
#1F0D34 #3D1A65 #5A2696 #7732C7 #9760D7

Accessibility & contrast

On white

9.76
#5A2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A2696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2696
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2696#FFFFFF#000000##FFFFFF
##5A26961.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#4C425C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2696;
/* rgb */ color: rgb(90, 38, 150);
/* oklch */ color: oklch(40.7% 0.171 299.8);
Tailwind
colors: {
  custom: {
    50: '#8e66b6',
    500: '#5a2696',
    950: '#000000',
  },
}
SCSS
$custom: #5a2696;
$custom-light: #8e66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2696",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 267.857,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4069,
    "c": 0.17133,
    "h": 299.8
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#5A2696
secondary
#8FBC5C
accent
#E3459A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2696

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

Preview Lab → · Contrast checker → · Palette generator →

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