#5A2E95#5A2E95

#5A2E95 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.160 H 298.8°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5A2E95
RGBrgb(90, 46, 149)
HSLhsl(266, 53%, 38%)
HSVhsv(266, 69%, 58%)
CMYKcmyk(39.6%, 69.1%, 0%, 41.6%)
CIE-LABlab(30.15, 41.87, -49.23)
CIE-LCHlch(30.15, 64.63, 310.38°)
OKLaboklab(41.62% 0.0772 -0.1404)
OKLCHoklch(41.62% 0.16 298.8)
XYZxyz(10.6169, 6.2974, 29.0841)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E95 #69952E
analogous
#2E3595 #5A2E95 #8D2E95
triadic
#5A2E95 #955A2E #2E955A
tetradic
#5A2E95 #952E35 #69952E #2E958D
square
#5A2E95 #952E35 #69952E #2E958D
split-complementary
#5A2E95 #958D2E #35952E
monochromatic
#221137 #3E2066 #5A2E95 #763DC3 #976CD2

Accessibility & contrast

On white

9.29
#5A2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E95
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E95#FFFFFF#000000##FFFFFF
##5A2E951.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#4C465E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2e95;
/* rgb */ color: rgb(90, 46, 149);
/* oklch */ color: oklch(41.6% 0.160 298.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ab5',
    500: '#5a2e95',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e95;
$custom-light: #8e6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e95",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 265.631,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41623,
    "c": 0.16021,
    "h": 298.8
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#5A2E95
secondary
#95B966
accent
#DC4C9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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