#5A35CF#5A35CF

#5A35CF is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.220 H 285.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5A35CF
RGBrgb(90, 53, 207)
HSLhsl(254, 62%, 51%)
HSVhsv(254, 74%, 81%)
CMYKcmyk(56.5%, 74.4%, 0%, 18.8%)
CIE-LABlab(36.41, 54.40, -73.53)
CIE-LCHlch(36.41, 91.47, 306.50°)
OKLaboklab(47.6% 0.0588 -0.2117)
OKLCHoklch(47.6% 0.22 285.5)
XYZxyz(16.7486, 9.2239, 59.9172)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35CF #AACF35
analogous
#355DCF #5A35CF #A735CF
triadic
#5A35CF #CF5A35 #35CF5A
tetradic
#5A35CF #CF355D #AACF35 #35CFA7
square
#5A35CF #CF355D #AACF35 #35CFA7
split-complementary
#5A35CF #CFA735 #5DCF35
monochromatic
#2F1A6F #4426A1 #5A35CF #8266DB #AB98E7

Accessibility & contrast

On white

7.38
#5A35CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A35CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35CF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35CF#FFFFFF#000000##FFFFFF
##5A35CF1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#206080
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a35cf;
/* rgb */ color: rgb(90, 53, 207);
/* oklch */ color: oklch(47.6% 0.220 285.5);
Tailwind
colors: {
  custom: {
    50: '#9570df',
    500: '#5a35cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a35cf;
$custom-light: #9570df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35cf",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 207
  },
  "hsl": {
    "h": 254.416,
    "s": 61.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47602,
    "c": 0.21973,
    "h": 285.5
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

primary
#5A35CF
secondary
#C2D28E
accent
#E543BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A35CF

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

Preview Lab → · Contrast checker → · Palette generator →

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