#5F35C5#5F35C5

#5F35C5 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.208 H 289.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5F35C5
RGBrgb(95, 53, 197)
HSLhsl(258, 58%, 49%)
HSVhsv(258, 73%, 77%)
CMYKcmyk(51.8%, 73.1%, 0%, 22.7%)
CIE-LABlab(36.00, 52.31, -68.36)
CIE-LCHlch(36.00, 86.08, 307.43°)
OKLaboklab(47.16% 0.0684 -0.1964)
OKLCHoklch(47.16% 0.208 289.2)
XYZxyz(16.0675, 9.0096, 53.7049)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C5 #9BC535
analogous
#3553C5 #5F35C5 #A735C5
triadic
#5F35C5 #C55F35 #35C55F
tetradic
#5F35C5 #C53553 #9BC535 #35C5A7
square
#5F35C5 #C53553 #9BC535 #35C5A7
split-complementary
#5F35C5 #C5A735 #53C535
monochromatic
#301B65 #482895 #5F35C5 #8462D5 #AA93E2

Accessibility & contrast

On white

7.49
#5F35C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F35C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C5
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C5#FFFFFF#000000##FFFFFF
##5F35C51.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#395C7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f35c5;
/* rgb */ color: rgb(95, 53, 197);
/* oklch */ color: oklch(47.2% 0.208 289.2);
Tailwind
colors: {
  custom: {
    50: '#9670d8',
    500: '#5f35c5',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c5;
$custom-light: #9670d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c5",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 257.5,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47155,
    "c": 0.208,
    "h": 289.2
  },
  "luminance": 0.0901
}

Semantic roles & 50–950 ramp

primary
#5F35C5
secondary
#B9CD89
accent
#E147B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F35C5

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

Preview Lab → · Contrast checker → · Palette generator →

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