#5F35CF#5F35CF

#5F35CF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.219 H 287.5°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5F35CF
RGBrgb(95, 53, 207)
HSLhsl(256, 62%, 51%)
HSVhsv(256, 74%, 81%)
CMYKcmyk(54.1%, 74.4%, 0%, 18.8%)
CIE-LABlab(36.90, 55.09, -72.71)
CIE-LCHlch(36.90, 91.22, 307.15°)
OKLaboklab(48.06% 0.066 -0.2092)
OKLCHoklch(48.06% 0.219 287.5)
XYZxyz(17.2516, 9.4832, 59.9408)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35CF #A5CF35
analogous
#3558CF #5F35CF #AC35CF
triadic
#5F35CF #CF5F35 #35CF5F
tetradic
#5F35CF #CF3558 #A5CF35 #35CFAC
square
#5F35CF #CF3558 #A5CF35 #35CFAC
split-complementary
#5F35CF #CFAC35 #58CF35
monochromatic
#321A6F #4826A1 #5F35CF #8666DB #AD98E7

Accessibility & contrast

On white

7.25
#5F35CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F35CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35CF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35CF#FFFFFF#000000##FFFFFF
##5F35CF1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#306080
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f35cf;
/* rgb */ color: rgb(95, 53, 207);
/* oklch */ color: oklch(48.1% 0.219 287.5);
Tailwind
colors: {
  custom: {
    50: '#9871df',
    500: '#5f35cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f35cf;
$custom-light: #9871df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35cf",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 207
  },
  "hsl": {
    "h": 256.364,
    "s": 61.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4806,
    "c": 0.21934,
    "h": 287.5
  },
  "luminance": 0.09484
}

Semantic roles & 50–950 ramp

primary
#5F35CF
secondary
#BFD28E
accent
#E543B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F35CF

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

Preview Lab → · Contrast checker → · Palette generator →

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