#5A33A5#5A33A5

#5A33A5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.173 H 293.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5A33A5
RGBrgb(90, 51, 165)
HSLhsl(261, 53%, 42%)
HSVhsv(261, 69%, 65%)
CMYKcmyk(45.5%, 69.1%, 0%, 35.3%)
CIE-LABlab(32.39, 43.59, -55.32)
CIE-LCHlch(32.39, 70.43, 308.24°)
OKLaboklab(43.62% 0.0694 -0.1583)
OKLCHoklch(43.62% 0.173 293.7)
XYZxyz(12.1900, 7.2576, 36.3486)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33A5 #7EA533
analogous
#3345A5 #5A33A5 #9333A5
triadic
#5A33A5 #A55A33 #33A55A
tetradic
#5A33A5 #A53345 #7EA533 #33A593
square
#5A33A5 #A53345 #7EA533 #33A593
split-complementary
#5A33A5 #A59333 #45A533
monochromatic
#271648 #402576 #5A33A5 #774DC8 #9B7CD6

Accessibility & contrast

On white

8.57
#5A33A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A33A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33A5
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33A5#FFFFFF#000000##FFFFFF
##5A33A51.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#444F68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a33a5;
/* rgb */ color: rgb(90, 51, 165);
/* oklch */ color: oklch(43.6% 0.173 293.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ec1',
    500: '#5a33a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a33a5;
$custom-light: #8f6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33a5",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 260.526,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43622,
    "c": 0.17283,
    "h": 293.7
  },
  "luminance": 0.07258
}

Semantic roles & 50–950 ramp

primary
#5A33A5
secondary
#A6BF75
accent
#DC4CAB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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