#5A35B2#5A35B2

#5A35B2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.186 H 290.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5A35B2
RGBrgb(90, 53, 178)
HSLhsl(258, 54%, 45%)
HSVhsv(258, 70%, 70%)
CMYKcmyk(49.4%, 70.2%, 0%, 30.2%)
CIE-LABlab(33.84, 46.18, -60.72)
CIE-LCHlch(33.84, 76.28, 307.26°)
OKLaboklab(45% 0.0651 -0.1742)
OKLCHoklch(45% 0.186 290.5)
XYZxyz(13.5231, 7.9337, 42.9297)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35B2 #8DB235
analogous
#354EB2 #5A35B2 #9835B2
triadic
#5A35B2 #B25A35 #35B25A
tetradic
#5A35B2 #B2354E #8DB235 #35B298
square
#5A35B2 #B2354E #8DB235 #35B298
split-complementary
#5A35B2 #B29835 #4EB235
monochromatic
#2A1954 #422783 #5A35B2 #7A57CD #9F86DB

Accessibility & contrast

On white

8.12
#5A35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35B2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35B2#FFFFFF#000000##FFFFFF
##5A35B21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#3D556F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a35b2;
/* rgb */ color: rgb(90, 53, 178);
/* oklch */ color: oklch(45.0% 0.186 290.5);
Tailwind
colors: {
  custom: {
    50: '#916fca',
    500: '#5a35b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a35b2;
$custom-light: #916fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35b2",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 257.76,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44997,
    "c": 0.18595,
    "h": 290.5
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#5A35B2
secondary
#B0C57E
accent
#DD4AB2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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