#5A2398#5A2398

#5A2398 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.177 H 299.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5A2398
RGBrgb(90, 35, 152)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 60%)
CMYKcmyk(40.8%, 77%, 0%, 40.4%)
CIE-LABlab(28.49, 48.01, -53.77)
CIE-LCHlch(28.49, 72.09, 311.76°)
OKLaboklab(40.52% 0.0876 -0.1537)
OKLCHoklch(40.52% 0.177 299.7)
XYZxyz(10.4836, 5.6426, 30.2365)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2398 #619823
analogous
#232798 #5A2398 #952398
triadic
#5A2398 #985A23 #23985A
tetradic
#5A2398 #982327 #619823 #239895
square
#5A2398 #982327 #619823 #239895
split-complementary
#5A2398 #989523 #279823
monochromatic
#1F0C35 #3D1866 #5A2398 #772ECA #975CD9

Accessibility & contrast

On white

9.87
#5A2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2398
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2398#FFFFFF#000000##FFFFFF
##5A23981.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#4B425C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a2398;
/* rgb */ color: rgb(90, 35, 152);
/* oklch */ color: oklch(40.5% 0.177 299.7);
Tailwind
colors: {
  custom: {
    50: '#8f64b7',
    500: '#5a2398',
    950: '#000000',
  },
}
SCSS
$custom: #5a2398;
$custom-light: #8f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2398",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 268.205,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40524,
    "c": 0.17687,
    "h": 299.7
  },
  "luminance": 0.05643
}

Semantic roles & 50–950 ramp

primary
#5A2398
secondary
#8EBE59
accent
#E64299
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2398

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

Preview Lab → · Contrast checker → · Palette generator →

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