#5F35B9#5F35B9

#5F35B9 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.194 H 291.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5F35B9
RGBrgb(95, 53, 185)
HSLhsl(259, 55%, 47%)
HSVhsv(259, 71%, 73%)
CMYKcmyk(48.6%, 71.4%, 0%, 27.5%)
CIE-LABlab(34.97, 48.99, -63.01)
CIE-LCHlch(34.97, 79.82, 307.87°)
OKLaboklab(46.1% 0.071 -0.1807)
OKLCHoklch(46.1% 0.194 291.5)
XYZxyz(14.7469, 8.4813, 46.7496)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B9 #8FB935
analogous
#354DB9 #5F35B9 #A135B9
triadic
#5F35B9 #B95F35 #35B95F
tetradic
#5F35B9 #B9354D #8FB935 #35B9A1
square
#5F35B9 #B9354D #8FB935 #35B9A1
split-complementary
#5F35B9 #B9A135 #4DB935
monochromatic
#2E1A5A #472789 #5F35B9 #805BD0 #A58BDE

Accessibility & contrast

On white

7.79
#5F35B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F35B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B9
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B9#FFFFFF#000000##FFFFFF
##5F35B91.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#425773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f35b9;
/* rgb */ color: rgb(95, 53, 185);
/* oklch */ color: oklch(46.1% 0.194 291.5);
Tailwind
colors: {
  custom: {
    50: '#9570cf',
    500: '#5f35b9',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b9;
$custom-light: #9570cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b9",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 259.091,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46102,
    "c": 0.19418,
    "h": 291.5
  },
  "luminance": 0.08482
}

Semantic roles & 50–950 ramp

primary
#5F35B9
secondary
#B2C882
accent
#DF49AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F35B9

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

Preview Lab → · Contrast checker → · Palette generator →

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