#5A35D7#5A35D7

#5A35D7 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.229 H 284.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5A35D7
RGBrgb(90, 53, 215)
HSLhsl(254, 67%, 53%)
HSVhsv(254, 75%, 84%)
CMYKcmyk(58.1%, 75.3%, 0%, 15.7%)
CIE-LABlab(37.16, 56.66, -76.92)
CIE-LCHlch(37.16, 95.54, 306.38°)
OKLaboklab(48.35% 0.0567 -0.2216)
OKLCHoklch(48.35% 0.229 284.4)
XYZxyz(17.7515, 9.6250, 65.1992)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35D7 #B2D735
analogous
#3561D7 #5A35D7 #AB35D7
triadic
#5A35D7 #D75A35 #35D75A
tetradic
#5A35D7 #D73561 #B2D735 #35D7AB
square
#5A35D7 #D73561 #B2D735 #35D7AB
split-complementary
#5A35D7 #D7AB35 #61D735
monochromatic
#2E187A #4222AD #5A35D7 #8468E1 #AD9BEB

Accessibility & contrast

On white

7.18
#5A35D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5A35D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35D7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35D7#FFFFFF#000000##FFFFFF
##5A35D71.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0052D4
Tritanopia (blue-blind)
#0D6384
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a35d7;
/* rgb */ color: rgb(90, 53, 215);
/* oklch */ color: oklch(48.4% 0.229 284.4);
Tailwind
colors: {
  custom: {
    50: '#9671e5',
    500: '#5a35d7',
    950: '#000000',
  },
}
SCSS
$custom: #5a35d7;
$custom-light: #9671e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35d7",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 215
  },
  "hsl": {
    "h": 253.704,
    "s": 66.942,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48354,
    "c": 0.22878,
    "h": 284.4
  },
  "luminance": 0.09626
}

Semantic roles & 50–950 ramp

primary
#5A35D7
secondary
#C7D791
accent
#EA3EC3
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A35D7

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

Preview Lab → · Contrast checker → · Palette generator →

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