#5A35C9#5A35C9

#5A35C9 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.213 H 286.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5A35C9
RGBrgb(90, 53, 201)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 74%, 79%)
CMYKcmyk(55.2%, 73.6%, 0%, 21.2%)
CIE-LABlab(35.86, 52.71, -70.95)
CIE-LCHlch(35.86, 88.38, 306.61°)
OKLaboklab(47.05% 0.0602 -0.2042)
OKLCHoklch(47.05% 0.213 286.4)
XYZxyz(16.0290, 8.9360, 56.1272)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35C9 #A4C935
analogous
#355AC9 #5A35C9 #A435C9
triadic
#5A35C9 #C95A35 #35C95A
tetradic
#5A35C9 #C9355A #A4C935 #35C9A4
square
#5A35C9 #C9355A #A4C935 #35C9A4
split-complementary
#5A35C9 #C9A435 #5AC935
monochromatic
#2F1B68 #442899 #5A35C9 #8165D6 #A995E3

Accessibility & contrast

On white

7.53
#5A35C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A35C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35C9
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35C9#FFFFFF#000000##FFFFFF
##5A35C91.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#0050C6
Tritanopia (blue-blind)
#285E7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a35c9;
/* rgb */ color: rgb(90, 53, 201);
/* oklch */ color: oklch(47.0% 0.213 286.4);
Tailwind
colors: {
  custom: {
    50: '#9470db',
    500: '#5a35c9',
    950: '#000000',
  },
}
SCSS
$custom: #5a35c9;
$custom-light: #9470db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35c9",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 201
  },
  "hsl": {
    "h": 255,
    "s": 58.268,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47046,
    "c": 0.21286,
    "h": 286.4
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#5A35C9
secondary
#BECE8B
accent
#E146BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A35C9

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

Preview Lab → · Contrast checker → · Palette generator →

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