#5F35BB#5F35BB

#5F35BB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.197 H 291.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5F35BB
RGBrgb(95, 53, 187)
HSLhsl(259, 56%, 47%)
HSVhsv(259, 72%, 73%)
CMYKcmyk(49.2%, 71.7%, 0%, 26.7%)
CIE-LABlab(35.14, 49.55, -63.91)
CIE-LCHlch(35.14, 80.87, 307.78°)
OKLaboklab(46.28% 0.0706 -0.1834)
OKLCHoklch(46.28% 0.197 291.1)
XYZxyz(14.9595, 8.5664, 47.8693)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35BB #91BB35
analogous
#354EBB #5F35BB #A235BB
triadic
#5F35BB #BB5F35 #35BB5F
tetradic
#5F35BB #BB354E #91BB35 #35BBA2
square
#5F35BB #BB354E #91BB35 #35BBA2
split-complementary
#5F35BB #BBA235 #4EBB35
monochromatic
#2F1A5C #47278B #5F35BB #815CD1 #A68CDE

Accessibility & contrast

On white

7.74
#5F35BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F35BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35BB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35BB#FFFFFF#000000##FFFFFF
##5F35BB1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#415874
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f35bb;
/* rgb */ color: rgb(95, 53, 187);
/* oklch */ color: oklch(46.3% 0.197 291.1);
Tailwind
colors: {
  custom: {
    50: '#9570d0',
    500: '#5f35bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f35bb;
$custom-light: #9570d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35bb",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 258.806,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46275,
    "c": 0.1965,
    "h": 291.1
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#5F35BB
secondary
#B3C983
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F35BB

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

Preview Lab → · Contrast checker → · Palette generator →

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