#5F35B8#5F35B8

#5F35B8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.193 H 291.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5F35B8
RGBrgb(95, 53, 184)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 72%)
CMYKcmyk(48.4%, 71.2%, 0%, 27.8%)
CIE-LABlab(34.88, 48.72, -62.56)
CIE-LCHlch(34.88, 79.29, 307.91°)
OKLaboklab(46.02% 0.0712 -0.1794)
OKLCHoklch(46.02% 0.193 291.7)
XYZxyz(14.6417, 8.4393, 46.1956)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B8 #8EB835
analogous
#354DB8 #5F35B8 #A135B8
triadic
#5F35B8 #B85F35 #35B85F
tetradic
#5F35B8 #B8354D #8EB835 #35B8A1
square
#5F35B8 #B8354D #8EB835 #35B8A1
split-complementary
#5F35B8 #B8A135 #4DB835
monochromatic
#2E1A59 #462788 #5F35B8 #805BD0 #A58ADD

Accessibility & contrast

On white

7.81
#5F35B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5F35B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B8#FFFFFF#000000##FFFFFF
##5F35B81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f35b8;
/* rgb */ color: rgb(95, 53, 184);
/* oklch */ color: oklch(46.0% 0.193 291.7);
Tailwind
colors: {
  custom: {
    50: '#9570ce',
    500: '#5f35b8',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b8;
$custom-light: #9570ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b8",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 259.237,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46016,
    "c": 0.19302,
    "h": 291.7
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F35B8

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

Preview Lab → · Contrast checker → · Palette generator →

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