#5F35B6#5F35B6

#5F35B6 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.191 H 292.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5F35B6
RGBrgb(95, 53, 182)
HSLhsl(260, 55%, 46%)
HSVhsv(260, 71%, 71%)
CMYKcmyk(47.8%, 70.9%, 0%, 28.6%)
CIE-LABlab(34.71, 48.16, -61.65)
CIE-LCHlch(34.71, 78.23, 308.00°)
OKLaboklab(45.85% 0.0716 -0.1767)
OKLCHoklch(45.85% 0.191 292.1)
XYZxyz(14.4336, 8.3560, 45.0993)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B6 #8CB635
analogous
#354BB6 #5F35B6 #9F35B6
triadic
#5F35B6 #B65F35 #35B65F
tetradic
#5F35B6 #B6354B #8CB635 #35B69F
square
#5F35B6 #B6354B #8CB635 #35B69F
split-complementary
#5F35B6 #B69F35 #4BB635
monochromatic
#2E1957 #462787 #5F35B6 #8059CF #A489DD

Accessibility & contrast

On white

7.86
#5F35B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F35B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B6
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B6#FFFFFF#000000##FFFFFF
##5F35B61.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#445672
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f35b6;
/* rgb */ color: rgb(95, 53, 182);
/* oklch */ color: oklch(45.8% 0.191 292.1);
Tailwind
colors: {
  custom: {
    50: '#9470cd',
    500: '#5f35b6',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b6;
$custom-light: #9470cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b6",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 182
  },
  "hsl": {
    "h": 259.535,
    "s": 54.894,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45845,
    "c": 0.19069,
    "h": 292.1
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#5F35B6
secondary
#B0C780
accent
#DE4AAE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F35B6

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

Preview Lab → · Contrast checker → · Palette generator →

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