#5F35B0#5F35B0

#5F35B0 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.184 H 293.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5F35B0
RGBrgb(95, 53, 176)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 69%)
CMYKcmyk(46%, 69.9%, 0%, 31%)
CIE-LABlab(34.22, 46.51, -58.89)
CIE-LCHlch(34.22, 75.04, 308.30°)
OKLaboklab(45.34% 0.0727 -0.1686)
OKLCHoklch(45.34% 0.184 293.3)
XYZxyz(13.8267, 8.1133, 41.9034)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B0 #86B035
analogous
#3548B0 #5F35B0 #9D35B0
triadic
#5F35B0 #B05F35 #35B05F
tetradic
#5F35B0 #B03548 #86B035 #35B09D
square
#5F35B0 #B03548 #86B035 #35B09D
split-complementary
#5F35B0 #B09D35 #48B035
monochromatic
#2C1952 #462781 #5F35B0 #7E56CC #A285DA

Accessibility & contrast

On white

8.01
#5F35B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5F35B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B0
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B0#FFFFFF#000000##FFFFFF
##5F35B01.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#47546E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f35b0;
/* rgb */ color: rgb(95, 53, 176);
/* oklch */ color: oklch(45.3% 0.184 293.3);
Tailwind
colors: {
  custom: {
    50: '#9470c9',
    500: '#5f35b0',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b0;
$custom-light: #9470c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b0",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 176
  },
  "hsl": {
    "h": 260.488,
    "s": 53.712,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45338,
    "c": 0.18366,
    "h": 293.3
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#5F35B0
secondary
#ACC47D
accent
#DD4BAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F35B0

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

Preview Lab → · Contrast checker → · Palette generator →

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