#5B35C5#5B35C5

#5B35C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.208 H 287.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5B35C5
RGBrgb(91, 53, 197)
HSLhsl(256, 58%, 49%)
HSVhsv(256, 73%, 77%)
CMYKcmyk(53.8%, 73.1%, 0%, 22.7%)
CIE-LABlab(35.60, 51.72, -69.04)
CIE-LCHlch(35.60, 86.26, 306.84°)
OKLaboklab(46.77% 0.0626 -0.1985)
OKLCHoklch(46.77% 0.208 287.5)
XYZxyz(15.6625, 8.8008, 53.6859)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35C5 #9FC535
analogous
#3557C5 #5B35C5 #A335C5
triadic
#5B35C5 #C55B35 #35C55B
tetradic
#5B35C5 #C53557 #9FC535 #35C5A3
square
#5B35C5 #C53557 #9FC535 #35C5A3
split-complementary
#5B35C5 #C5A335 #57C535
monochromatic
#2E1B65 #452895 #5B35C5 #8162D5 #A793E2

Accessibility & contrast

On white

7.61
#5B35C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B35C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35C5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35C5#FFFFFF#000000##FFFFFF
##5B35C51.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#2F5C7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b35c5;
/* rgb */ color: rgb(91, 53, 197);
/* oklch */ color: oklch(46.8% 0.208 287.5);
Tailwind
colors: {
  custom: {
    50: '#9470d8',
    500: '#5b35c5',
    950: '#000000',
  },
}
SCSS
$custom: #5b35c5;
$custom-light: #9470d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35c5",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 255.833,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46774,
    "c": 0.20818,
    "h": 287.5
  },
  "luminance": 0.08802
}

Semantic roles & 50–950 ramp

primary
#5B35C5
secondary
#BBCD89
accent
#E147B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B35C5

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

Preview Lab → · Contrast checker → · Palette generator →

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