#5F35C3#5F35C3

#5F35C3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.206 H 289.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5F35C3
RGBrgb(95, 53, 195)
HSLhsl(258, 57%, 49%)
HSVhsv(258, 73%, 76%)
CMYKcmyk(51.3%, 72.8%, 0%, 23.5%)
CIE-LABlab(35.83, 51.76, -67.48)
CIE-LCHlch(35.83, 85.05, 307.49°)
OKLaboklab(46.98% 0.0689 -0.1938)
OKLCHoklch(46.98% 0.206 289.6)
XYZxyz(15.8399, 8.9185, 52.5060)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C3 #99C335
analogous
#3552C3 #5F35C3 #A635C3
triadic
#5F35C3 #C35F35 #35C35F
tetradic
#5F35C3 #C33552 #99C335 #35C3A6
square
#5F35C3 #C33552 #99C335 #35C3A6
split-complementary
#5F35C3 #C3A635 #52C335
monochromatic
#301B63 #482893 #5F35C3 #8361D4 #A991E1

Accessibility & contrast

On white

7.54
#5F35C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F35C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C3
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C3#FFFFFF#000000##FFFFFF
##5F35C31.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#3B5B79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f35c3;
/* rgb */ color: rgb(95, 53, 195);
/* oklch */ color: oklch(47.0% 0.206 289.6);
Tailwind
colors: {
  custom: {
    50: '#9670d6',
    500: '#5f35c3',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c3;
$custom-light: #9670d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c3",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 195
  },
  "hsl": {
    "h": 257.746,
    "s": 57.258,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46977,
    "c": 0.20571,
    "h": 289.6
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#5F35C3
secondary
#B8CC88
accent
#E147B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F35C3

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

Preview Lab → · Contrast checker → · Palette generator →

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