#5F35BE#5F35BE

#5F35BE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.200 H 290.5°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5F35BE
RGBrgb(95, 53, 190)
HSLhsl(258, 56%, 48%)
HSVhsv(258, 72%, 75%)
CMYKcmyk(50%, 72.1%, 0%, 25.5%)
CIE-LABlab(35.39, 50.38, -65.26)
CIE-LCHlch(35.39, 82.44, 307.67°)
OKLaboklab(46.54% 0.07 -0.1873)
OKLCHoklch(46.54% 0.2 290.5)
XYZxyz(15.2840, 8.6962, 49.5784)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35BE #94BE35
analogous
#354FBE #5F35BE #A335BE
triadic
#5F35BE #BE5F35 #35BE5F
tetradic
#5F35BE #BE354F #94BE35 #35BEA3
square
#5F35BE #BE354F #94BE35 #35BEA3
split-complementary
#5F35BE #BEA335 #4FBE35
monochromatic
#2F1A5E #47288E #5F35BE #825ED2 #A78EDF

Accessibility & contrast

On white

7.67
#5F35BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F35BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35BE
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35BE#FFFFFF#000000##FFFFFF
##5F35BE1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#3E5976
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f35be;
/* rgb */ color: rgb(95, 53, 190);
/* oklch */ color: oklch(46.5% 0.200 290.5);
Tailwind
colors: {
  custom: {
    50: '#9570d3',
    500: '#5f35be',
    950: '#000000',
  },
}
SCSS
$custom: #5f35be;
$custom-light: #9570d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35be",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 190
  },
  "hsl": {
    "h": 258.394,
    "s": 56.379,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46537,
    "c": 0.19997,
    "h": 290.5
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#5F35BE
secondary
#B5CA85
accent
#E048B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F35BE

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

Preview Lab → · Contrast checker → · Palette generator →

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