#5F35B2#5F35B2

#5F35B2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.186 H 292.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5F35B2
RGBrgb(95, 53, 178)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 70%)
CMYKcmyk(46.6%, 70.2%, 0%, 30.2%)
CIE-LABlab(34.38, 47.06, -59.82)
CIE-LCHlch(34.38, 76.11, 308.19°)
OKLaboklab(45.51% 0.0724 -0.1713)
OKLCHoklch(45.51% 0.186 292.9)
XYZxyz(14.0261, 8.1930, 42.9532)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35B2 #88B235
analogous
#3549B2 #5F35B2 #9D35B2
triadic
#5F35B2 #B25F35 #35B25F
tetradic
#5F35B2 #B23549 #88B235 #35B29D
square
#5F35B2 #B23549 #88B235 #35B29D
split-complementary
#5F35B2 #B29D35 #49B235
monochromatic
#2D1954 #462783 #5F35B2 #7F57CD #A386DB

Accessibility & contrast

On white

7.96
#5F35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35B2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35B2#FFFFFF#000000##FFFFFF
##5F35B21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#46556F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f35b2;
/* rgb */ color: rgb(95, 53, 178);
/* oklch */ color: oklch(45.5% 0.186 292.9);
Tailwind
colors: {
  custom: {
    50: '#9470ca',
    500: '#5f35b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f35b2;
$custom-light: #9470ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35b2",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 260.16,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45505,
    "c": 0.18601,
    "h": 292.9
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#5F35B2
secondary
#ADC57E
accent
#DD4AAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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