#5A33D7#5A33D7

#5A33D7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.231 H 284.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5A33D7
RGBrgb(90, 51, 215)
HSLhsl(254, 67%, 52%)
HSVhsv(254, 76%, 84%)
CMYKcmyk(58.1%, 76.3%, 0%, 15.7%)
CIE-LABlab(36.83, 57.61, -77.46)
CIE-LCHlch(36.83, 96.54, 306.64°)
OKLaboklab(48.12% 0.0581 -0.2232)
OKLCHoklch(48.12% 0.231 284.6)
XYZxyz(17.6623, 9.4465, 65.1695)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A33D7 #B0D733
analogous
#335ED7 #5A33D7 #AC33D7
triadic
#5A33D7 #D75A33 #33D75A
tetradic
#5A33D7 #D7335E #B0D733 #33D7AC
square
#5A33D7 #D7335E #B0D733 #33D7AC
split-complementary
#5A33D7 #D7AC33 #5ED733
monochromatic
#2E1878 #4222AB #5A33D7 #8366E1 #AD99EB

Accessibility & contrast

On white

7.27
#5A33D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5A33D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A33D7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A33D7#FFFFFF#000000##FFFFFF
##5A33D71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDC
Deuteranopia (green-blind)
#0051D4
Tritanopia (blue-blind)
#0E6284
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a33d7;
/* rgb */ color: rgb(90, 51, 215);
/* oklch */ color: oklch(48.1% 0.231 284.6);
Tailwind
colors: {
  custom: {
    50: '#9670e5',
    500: '#5a33d7',
    950: '#000000',
  },
}
SCSS
$custom: #5a33d7;
$custom-light: #9670e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a33d7",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 215
  },
  "hsl": {
    "h": 254.268,
    "s": 67.213,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48123,
    "c": 0.23063,
    "h": 284.6
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#5A33D7
secondary
#C6D78F
accent
#EA3EC1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A33D7

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

Preview Lab → · Contrast checker → · Palette generator →

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