#5A2E9F#5A2E9F

#5A2E9F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.172 H 296.0°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5A2E9F
RGBrgb(90, 46, 159)
HSLhsl(263, 55%, 40%)
HSVhsv(263, 71%, 62%)
CMYKcmyk(43.4%, 71.1%, 0%, 37.6%)
CIE-LABlab(30.95, 44.57, -54.03)
CIE-LCHlch(30.95, 70.04, 309.52°)
OKLaboklab(42.45% 0.0755 -0.1545)
OKLCHoklch(42.45% 0.172 296)
XYZxyz(11.4498, 6.6306, 33.4707)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E9F #739F2E
analogous
#2E3A9F #5A2E9F #932E9F
triadic
#5A2E9F #9F5A2E #2E9F5A
tetradic
#5A2E9F #9F2E3A #739F2E #2E9F93
square
#5A2E9F #9F2E3A #739F2E #2E9F93
split-complementary
#5A2E9F #9F932E #3A9F2E
monochromatic
#241340 #3F2070 #5A2E9F #7642C8 #9971D6

Accessibility & contrast

On white

9.03
#5A2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E9F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E9F#FFFFFF#000000##FFFFFF
##5A2E9F1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#484A63
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2e9f;
/* rgb */ color: rgb(90, 46, 159);
/* oklch */ color: oklch(42.4% 0.172 296.0);
Tailwind
colors: {
  custom: {
    50: '#8f6abc',
    500: '#5a2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e9f;
$custom-light: #8f6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e9f",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 263.363,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42445,
    "c": 0.17196,
    "h": 296
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#5A2E9F
secondary
#9DBE6B
accent
#DE49A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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