#5A35CD#5A35CD

#5A35CD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.217 H 285.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A35CD
RGBrgb(90, 53, 205)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 74%, 80%)
CMYKcmyk(56.1%, 74.1%, 0%, 19.6%)
CIE-LABlab(36.23, 53.84, -72.67)
CIE-LCHlch(36.23, 90.44, 306.53°)
OKLaboklab(47.42% 0.0593 -0.2092)
OKLCHoklch(47.42% 0.217 285.8)
XYZxyz(16.5057, 9.1267, 58.6377)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35CD #A8CD35
analogous
#355CCD #5A35CD #A635CD
triadic
#5A35CD #CD5A35 #35CD5A
tetradic
#5A35CD #CD355C #A8CD35 #35CDA6
square
#5A35CD #CD355C #A8CD35 #35CDA6
split-complementary
#5A35CD #CDA635 #5CCD35
monochromatic
#2F1B6D #44279E #5A35CD #8266D9 #AA97E5

Accessibility & contrast

On white

7.43
#5A35CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A35CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35CD
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35CD#FFFFFF#000000##FFFFFF
##5A35CD1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#235F7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a35cd;
/* rgb */ color: rgb(90, 53, 205);
/* oklch */ color: oklch(47.4% 0.217 285.8);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5a35cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a35cd;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35cd",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 205
  },
  "hsl": {
    "h": 254.605,
    "s": 60.317,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47416,
    "c": 0.21744,
    "h": 285.8
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#5A35CD
secondary
#C0D18D
accent
#E344BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A35CD

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

Preview Lab → · Contrast checker → · Palette generator →

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