#5A2697#5A2697

#5A2697 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.172 H 299.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5A2697
RGBrgb(90, 38, 151)
HSLhsl(268, 60%, 37%)
HSVhsv(268, 75%, 59%)
CMYKcmyk(40.4%, 74.8%, 0%, 40.8%)
CIE-LABlab(28.89, 46.39, -52.52)
CIE-LCHlch(28.89, 70.07, 311.46°)
OKLaboklab(40.78% 0.085 -0.15)
OKLCHoklch(40.78% 0.172 299.6)
XYZxyz(10.4941, 5.7941, 29.8377)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2697 #639726
analogous
#262A97 #5A2697 #932697
triadic
#5A2697 #975A26 #26975A
tetradic
#5A2697 #97262A #639726 #269793
square
#5A2697 #97262A #639726 #269793
split-complementary
#5A2697 #979326 #2A9726
monochromatic
#200D35 #3D1A66 #5A2697 #7732C8 #9760D7

Accessibility & contrast

On white

9.73
#5A2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5A2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2697
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2697#FFFFFF#000000##FFFFFF
##5A26971.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#4C435C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2697;
/* rgb */ color: rgb(90, 38, 151);
/* oklch */ color: oklch(40.8% 0.172 299.6);
Tailwind
colors: {
  custom: {
    50: '#8e66b6',
    500: '#5a2697',
    950: '#000000',
  },
}
SCSS
$custom: #5a2697;
$custom-light: #8e66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2697",
  "rgb": {
    "r": 90,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 267.611,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40775,
    "c": 0.17243,
    "h": 299.6
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#5A2697
secondary
#90BC5C
accent
#E3459A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2697

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

Preview Lab → · Contrast checker → · Palette generator →

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