#5F35C0#5F35C0

#5F35C0 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.202 H 290.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5F35C0
RGBrgb(95, 53, 192)
HSLhsl(258, 57%, 48%)
HSVhsv(258, 72%, 75%)
CMYKcmyk(50.5%, 72.4%, 0%, 24.7%)
CIE-LABlab(35.57, 50.93, -66.15)
CIE-LCHlch(35.57, 83.48, 307.59°)
OKLaboklab(46.71% 0.0695 -0.1899)
OKLCHoklch(46.71% 0.202 290.1)
XYZxyz(15.5041, 8.7842, 50.7376)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C0 #96C035
analogous
#3551C0 #5F35C0 #A435C0
triadic
#5F35C0 #C05F35 #35C05F
tetradic
#5F35C0 #C03551 #96C035 #35C0A4
square
#5F35C0 #C03551 #96C035 #35C0A4
split-complementary
#5F35C0 #C0A435 #51C035
monochromatic
#301B60 #472890 #5F35C0 #825FD3 #A88FE0

Accessibility & contrast

On white

7.62
#5F35C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F35C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C0
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C0#FFFFFF#000000##FFFFFF
##5F35C01.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C4
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#3D5A77
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f35c0;
/* rgb */ color: rgb(95, 53, 192);
/* oklch */ color: oklch(46.7% 0.202 290.1);
Tailwind
colors: {
  custom: {
    50: '#9670d4',
    500: '#5f35c0',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c0;
$custom-light: #9670d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c0",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 192
  },
  "hsl": {
    "h": 258.129,
    "s": 56.735,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46712,
    "c": 0.20227,
    "h": 290.1
  },
  "luminance": 0.08785
}

Semantic roles & 50–950 ramp

primary
#5F35C0
secondary
#B6CB86
accent
#E048B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F35C0

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

Preview Lab → · Contrast checker → · Palette generator →

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