#5F35B4#5F35B4

#5F35B4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.188 H 292.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5F35B4
RGBrgb(95, 53, 180)
HSLhsl(260, 55%, 46%)
HSVhsv(260, 71%, 71%)
CMYKcmyk(47.2%, 70.6%, 0%, 29.4%)
CIE-LABlab(34.55, 47.61, -60.73)
CIE-LCHlch(34.55, 77.17, 308.09°)
OKLaboklab(45.68% 0.072 -0.174)
OKLCHoklch(45.68% 0.188 292.5)
XYZxyz(14.2283, 8.2739, 44.0185)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B4 #8AB435
analogous
#354AB4 #5F35B4 #9E35B4
triadic
#5F35B4 #B45F35 #35B45F
tetradic
#5F35B4 #B4354A #8AB435 #35B49E
square
#5F35B4 #B4354A #8AB435 #35B49E
split-complementary
#5F35B4 #B49E35 #4AB435
monochromatic
#2D1955 #462785 #5F35B4 #7F58CE #A388DC

Accessibility & contrast

On white

7.91
#5F35B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5F35B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B4#FFFFFF#000000##FFFFFF
##5F35B41.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#455571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f35b4;
/* rgb */ color: rgb(95, 53, 180);
/* oklch */ color: oklch(45.7% 0.188 292.5);
Tailwind
colors: {
  custom: {
    50: '#9470cb',
    500: '#5f35b4',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b4;
$custom-light: #9470cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b4",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 180
  },
  "hsl": {
    "h": 259.843,
    "s": 54.506,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45675,
    "c": 0.18835,
    "h": 292.5
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#5F35B4
secondary
#AEC67F
accent
#DE4AAD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F35B4

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

Preview Lab → · Contrast checker → · Palette generator →

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