#5F35C4#5F35C4

#5F35C4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.207 H 289.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F35C4
RGBrgb(95, 53, 196)
HSLhsl(258, 57%, 49%)
HSVhsv(258, 73%, 77%)
CMYKcmyk(51.5%, 73%, 0%, 23.1%)
CIE-LABlab(35.91, 52.04, -67.92)
CIE-LCHlch(35.91, 85.56, 307.46°)
OKLaboklab(47.07% 0.0686 -0.1951)
OKLCHoklch(47.07% 0.207 289.4)
XYZxyz(15.9533, 8.9639, 53.1035)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C4 #9AC435
analogous
#3553C4 #5F35C4 #A735C4
triadic
#5F35C4 #C45F35 #35C45F
tetradic
#5F35C4 #C43553 #9AC435 #35C4A7
square
#5F35C4 #C43553 #9AC435 #35C4A7
split-complementary
#5F35C4 #C4A735 #53C435
monochromatic
#301B64 #482894 #5F35C4 #8362D4 #A992E1

Accessibility & contrast

On white

7.52
#5F35C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F35C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C4#FFFFFF#000000##FFFFFF
##5F35C41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#3A5B7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f35c4;
/* rgb */ color: rgb(95, 53, 196);
/* oklch */ color: oklch(47.1% 0.207 289.4);
Tailwind
colors: {
  custom: {
    50: '#9670d7',
    500: '#5f35c4',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c4;
$custom-light: #9670d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c4",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 196
  },
  "hsl": {
    "h": 257.622,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47066,
    "c": 0.20686,
    "h": 289.4
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#5F35C4
secondary
#B8CC88
accent
#E147B4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F35C4

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

Preview Lab → · Contrast checker → · Palette generator →

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