#5F35D0#5F35D0

#5F35D0 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.220 H 287.4°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5F35D0
RGBrgb(95, 53, 208)
HSLhsl(256, 62%, 51%)
HSVhsv(256, 75%, 82%)
CMYKcmyk(54.3%, 74.5%, 0%, 18.4%)
CIE-LABlab(36.99, 55.36, -73.14)
CIE-LCHlch(36.99, 91.73, 307.12°)
OKLaboklab(48.15% 0.0658 -0.2104)
OKLCHoklch(48.15% 0.22 287.4)
XYZxyz(17.3742, 9.5323, 60.5867)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35D0 #A6D035
analogous
#3558D0 #5F35D0 #AC35D0
triadic
#5F35D0 #D05F35 #35D05F
tetradic
#5F35D0 #D03558 #A6D035 #35D0AC
square
#5F35D0 #D03558 #A6D035 #35D0AC
split-complementary
#5F35D0 #D0AC35 #58D035
monochromatic
#321A70 #4726A2 #5F35D0 #8667DC #AE98E7

Accessibility & contrast

On white

7.22
#5F35D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F35D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35D0
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35D0#FFFFFF#000000##FFFFFF
##5F35D01.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD4
Deuteranopia (green-blind)
#0053CD
Tritanopia (blue-blind)
#2F6080
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f35d0;
/* rgb */ color: rgb(95, 53, 208);
/* oklch */ color: oklch(48.2% 0.220 287.4);
Tailwind
colors: {
  custom: {
    50: '#9871e0',
    500: '#5f35d0',
    950: '#000000',
  },
}
SCSS
$custom: #5f35d0;
$custom-light: #9871e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35d0",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 208
  },
  "hsl": {
    "h": 256.258,
    "s": 62.249,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48152,
    "c": 0.22046,
    "h": 287.4
  },
  "luminance": 0.09533
}

Semantic roles & 50–950 ramp

primary
#5F35D0
secondary
#C0D38E
accent
#E542B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F35D0

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

Preview Lab → · Contrast checker → · Palette generator →

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