#5F35C6#5F35C6

#5F35C6 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.209 H 289.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5F35C6
RGBrgb(95, 53, 198)
HSLhsl(257, 58%, 49%)
HSVhsv(257, 73%, 78%)
CMYKcmyk(52%, 73.2%, 0%, 22.4%)
CIE-LABlab(36.09, 52.59, -68.80)
CIE-LCHlch(36.09, 86.60, 307.39°)
OKLaboklab(47.25% 0.0682 -0.1977)
OKLCHoklch(47.25% 0.209 289)
XYZxyz(16.1825, 9.0556, 54.3104)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C6 #9CC635
analogous
#3554C6 #5F35C6 #A835C6
triadic
#5F35C6 #C65F35 #35C65F
tetradic
#5F35C6 #C63554 #9CC635 #35C6A8
square
#5F35C6 #C63554 #9CC635 #35C6A8
split-complementary
#5F35C6 #C6A835 #54C635
monochromatic
#311B65 #482896 #5F35C6 #8463D5 #AA93E2

Accessibility & contrast

On white

7.47
#5F35C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5F35C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C6
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C6#FFFFFF#000000##FFFFFF
##5F35C61.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#385C7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f35c6;
/* rgb */ color: rgb(95, 53, 198);
/* oklch */ color: oklch(47.2% 0.209 289.0);
Tailwind
colors: {
  custom: {
    50: '#9670d8',
    500: '#5f35c6',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c6;
$custom-light: #9670d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c6",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 198
  },
  "hsl": {
    "h": 257.379,
    "s": 57.769,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47245,
    "c": 0.20914,
    "h": 289
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#5F35C6
secondary
#BACD8A
accent
#E147B4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F35C6

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

Preview Lab → · Contrast checker → · Palette generator →

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