#5A2598#5A2598

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

Color values

HEX#5A2598
RGBrgb(90, 37, 152)
HSLhsl(268, 61%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(40.8%, 75.7%, 0%, 40.4%)
CIE-LABlab(28.81, 47.11, -53.26)
CIE-LCHlch(28.81, 71.10, 311.50°)
OKLaboklab(40.75% 0.0858 -0.1522)
OKLCHoklch(40.75% 0.175 299.4)
XYZxyz(10.5441, 5.7637, 30.2567)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2598 #639825
analogous
#252A98 #5A2598 #942598
triadic
#5A2598 #985A25 #25985A
tetradic
#5A2598 #98252A #639825 #259894
square
#5A2598 #98252A #639825 #259894
split-complementary
#5A2598 #989425 #2A9825
monochromatic
#200D36 #3D1967 #5A2598 #7731C9 #975FD8

Accessibility & contrast

On white

9.75
#5A2598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2598
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2598#FFFFFF#000000##FFFFFF
##5A25981.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#4B435D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a2598;
/* rgb */ color: rgb(90, 37, 152);
/* oklch */ color: oklch(40.7% 0.175 299.4);
Tailwind
colors: {
  custom: {
    50: '#8f65b7',
    500: '#5a2598',
    950: '#000000',
  },
}
SCSS
$custom: #5a2598;
$custom-light: #8f65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2598",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 267.652,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40746,
    "c": 0.17467,
    "h": 299.4
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#5A2598
secondary
#90BD5C
accent
#E4449A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2598

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

Preview Lab → · Contrast checker → · Palette generator →

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