#5F35B3#5F35B3

#5F35B3 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.187 H 292.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5F35B3
RGBrgb(95, 53, 179)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 70%)
CMYKcmyk(46.9%, 70.4%, 0%, 29.8%)
CIE-LABlab(34.46, 47.34, -60.28)
CIE-LCHlch(34.46, 76.64, 308.14°)
OKLaboklab(45.59% 0.0722 -0.1727)
OKLCHoklch(45.59% 0.187 292.7)
XYZxyz(14.1268, 8.2333, 43.4839)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B3 #89B335
analogous
#354AB3 #5F35B3 #9E35B3
triadic
#5F35B3 #B35F35 #35B35F
tetradic
#5F35B3 #B3354A #89B335 #35B39E
square
#5F35B3 #B3354A #89B335 #35B39E
split-complementary
#5F35B3 #B39E35 #4AB335
monochromatic
#2D1955 #462784 #5F35B3 #7F58CD #A387DB

Accessibility & contrast

On white

7.93
#5F35B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F35B3
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B3#FFFFFF#000000##FFFFFF
##5F35B31.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f35b3;
/* rgb */ color: rgb(95, 53, 179);
/* oklch */ color: oklch(45.6% 0.187 292.7);
Tailwind
colors: {
  custom: {
    50: '#9470cb',
    500: '#5f35b3',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b3;
$custom-light: #9470cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b3",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 260,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4559,
    "c": 0.18718,
    "h": 292.7
  },
  "luminance": 0.08234
}

Semantic roles & 50–950 ramp

primary
#5F35B3
secondary
#AEC57F
accent
#DE4AAC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F35B3

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

Preview Lab → · Contrast checker → · Palette generator →

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