#5A2597#5A2597

#5A2597 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.174 H 299.7°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5A2597
RGBrgb(90, 37, 151)
HSLhsl(268, 61%, 37%)
HSVhsv(268, 75%, 59%)
CMYKcmyk(40.4%, 75.5%, 0%, 40.8%)
CIE-LABlab(28.72, 46.85, -52.78)
CIE-LCHlch(28.72, 70.58, 311.59°)
OKLaboklab(40.66% 0.086 -0.1508)
OKLCHoklch(40.66% 0.174 299.7)
XYZxyz(10.4625, 5.7310, 29.8271)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2597 #629725
analogous
#252997 #5A2597 #932597
triadic
#5A2597 #975A25 #25975A
tetradic
#5A2597 #972529 #629725 #259793
square
#5A2597 #972529 #629725 #259793
split-complementary
#5A2597 #979325 #299725
monochromatic
#1F0D35 #3D1966 #5A2597 #7731C8 #975FD8

Accessibility & contrast

On white

9.78
#5A2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2597
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2597#FFFFFF#000000##FFFFFF
##5A25971.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2597;
/* rgb */ color: rgb(90, 37, 151);
/* oklch */ color: oklch(40.7% 0.174 299.7);
Tailwind
colors: {
  custom: {
    50: '#8f65b6',
    500: '#5a2597',
    950: '#000000',
  },
}
SCSS
$custom: #5a2597;
$custom-light: #8f65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2597",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 267.895,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4066,
    "c": 0.17358,
    "h": 299.7
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#5A2597
secondary
#8FBD5B
accent
#E4449A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2597

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

Preview Lab → · Contrast checker → · Palette generator →

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