#5F35B7#5F35B7

#5F35B7 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.192 H 291.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5F35B7
RGBrgb(95, 53, 183)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 72%)
CMYKcmyk(48.1%, 71%, 0%, 28.2%)
CIE-LABlab(34.80, 48.44, -62.10)
CIE-LCHlch(34.80, 78.76, 307.95°)
OKLaboklab(45.93% 0.0714 -0.1781)
OKLCHoklch(45.93% 0.192 291.9)
XYZxyz(14.5373, 8.3975, 45.6455)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B7 #8DB735
analogous
#354CB7 #5F35B7 #A035B7
triadic
#5F35B7 #B75F35 #35B75F
tetradic
#5F35B7 #B7354C #8DB735 #35B7A0
square
#5F35B7 #B7354C #8DB735 #35B7A0
split-complementary
#5F35B7 #B7A035 #4CB735
monochromatic
#2E1A58 #462788 #5F35B7 #805ACF #A489DD

Accessibility & contrast

On white

7.84
#5F35B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F35B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B7#FFFFFF#000000##FFFFFF
##5F35B71.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#435672
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f35b7;
/* rgb */ color: rgb(95, 53, 183);
/* oklch */ color: oklch(45.9% 0.192 291.9);
Tailwind
colors: {
  custom: {
    50: '#9470ce',
    500: '#5f35b7',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b7;
$custom-light: #9470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b7",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 183
  },
  "hsl": {
    "h": 259.385,
    "s": 55.085,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4593,
    "c": 0.19186,
    "h": 291.9
  },
  "luminance": 0.08398
}

Semantic roles & 50–950 ramp

primary
#5F35B7
secondary
#B0C781
accent
#DE49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F35B7

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

Preview Lab → · Contrast checker → · Palette generator →

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