#5F35BC#5F35BC

#5F35BC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.198 H 290.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5F35BC
RGBrgb(95, 53, 188)
HSLhsl(259, 56%, 47%)
HSVhsv(259, 72%, 74%)
CMYKcmyk(49.5%, 71.8%, 0%, 26.3%)
CIE-LABlab(35.22, 49.82, -64.36)
CIE-LCHlch(35.22, 81.39, 307.74°)
OKLaboklab(46.36% 0.0704 -0.1847)
OKLCHoklch(46.36% 0.198 290.9)
XYZxyz(15.0669, 8.6093, 48.4351)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35BC #92BC35
analogous
#354EBC #5F35BC #A335BC
triadic
#5F35BC #BC5F35 #35BC5F
tetradic
#5F35BC #BC354E #92BC35 #35BCA3
square
#5F35BC #BC354E #92BC35 #35BCA3
split-complementary
#5F35BC #BCA335 #4EBC35
monochromatic
#2F1A5D #47288C #5F35BC #815DD1 #A68DDF

Accessibility & contrast

On white

7.71
#5F35BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F35BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35BC
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35BC#FFFFFF#000000##FFFFFF
##5F35BC1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#405875
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f35bc;
/* rgb */ color: rgb(95, 53, 188);
/* oklch */ color: oklch(46.4% 0.198 290.9);
Tailwind
colors: {
  custom: {
    50: '#9570d1',
    500: '#5f35bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f35bc;
$custom-light: #9570d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35bc",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 188
  },
  "hsl": {
    "h": 258.667,
    "s": 56.017,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46362,
    "c": 0.19766,
    "h": 290.9
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

primary
#5F35BC
secondary
#B4C984
accent
#DF48B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F35BC

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

Preview Lab → · Contrast checker → · Palette generator →

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