#5A35C5#5A35C5

#5A35C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.208 H 287.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5A35C5
RGBrgb(90, 53, 197)
HSLhsl(255, 58%, 49%)
HSVhsv(255, 73%, 77%)
CMYKcmyk(54.3%, 73.1%, 0%, 22.7%)
CIE-LABlab(35.50, 51.57, -69.21)
CIE-LCHlch(35.50, 86.31, 306.69°)
OKLaboklab(46.68% 0.0612 -0.1991)
OKLCHoklch(46.68% 0.208 287.1)
XYZxyz(15.5646, 8.7503, 53.6813)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35C5 #A0C535
analogous
#3558C5 #5A35C5 #A235C5
triadic
#5A35C5 #C55A35 #35C55A
tetradic
#5A35C5 #C53558 #A0C535 #35C5A2
square
#5A35C5 #C53558 #A0C535 #35C5A2
split-complementary
#5A35C5 #C5A235 #58C535
monochromatic
#2E1B65 #442895 #5A35C5 #8062D5 #A793E2

Accessibility & contrast

On white

7.64
#5A35C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A35C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35C5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35C5#FFFFFF#000000##FFFFFF
##5A35C51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#2D5C7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a35c5;
/* rgb */ color: rgb(90, 53, 197);
/* oklch */ color: oklch(46.7% 0.208 287.1);
Tailwind
colors: {
  custom: {
    50: '#9470d8',
    500: '#5a35c5',
    950: '#000000',
  },
}
SCSS
$custom: #5a35c5;
$custom-light: #9470d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35c5",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 255.417,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4668,
    "c": 0.20825,
    "h": 287.1
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#5A35C5
secondary
#BBCD89
accent
#E147B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A35C5

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

Preview Lab → · Contrast checker → · Palette generator →

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