#5A35C7#5A35C7

#5A35C7 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.211 H 286.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5A35C7
RGBrgb(90, 53, 199)
HSLhsl(255, 58%, 49%)
HSVhsv(255, 73%, 78%)
CMYKcmyk(54.8%, 73.4%, 0%, 22%)
CIE-LABlab(35.68, 52.14, -70.08)
CIE-LCHlch(35.68, 87.35, 306.65°)
OKLaboklab(46.86% 0.0607 -0.2016)
OKLCHoklch(46.86% 0.211 286.8)
XYZxyz(15.7953, 8.8425, 54.8962)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35C7 #A2C735
analogous
#3559C7 #5A35C7 #A335C7
triadic
#5A35C7 #C75A35 #35C75A
tetradic
#5A35C7 #C73559 #A2C735 #35C7A3
square
#5A35C7 #C73559 #A2C735 #35C7A3
split-complementary
#5A35C7 #C7A335 #59C735
monochromatic
#2E1B66 #442897 #5A35C7 #8064D6 #A894E2

Accessibility & contrast

On white

7.59
#5A35C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A35C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35C7
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35C7#FFFFFF#000000##FFFFFF
##5A35C71.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CB
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#2A5D7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a35c7;
/* rgb */ color: rgb(90, 53, 199);
/* oklch */ color: oklch(46.9% 0.211 286.8);
Tailwind
colors: {
  custom: {
    50: '#9470d9',
    500: '#5a35c7',
    950: '#000000',
  },
}
SCSS
$custom: #5a35c7;
$custom-light: #9470d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35c7",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 199
  },
  "hsl": {
    "h": 255.205,
    "s": 57.937,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46863,
    "c": 0.21056,
    "h": 286.8
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#5A35C7
secondary
#BDCE8A
accent
#E147BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A35C7

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

Preview Lab → · Contrast checker → · Palette generator →

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