#5F35CC#5F35CC

#5F35CC is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.216 H 288.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5F35CC
RGBrgb(95, 53, 204)
HSLhsl(257, 60%, 50%)
HSVhsv(257, 74%, 80%)
CMYKcmyk(53.4%, 74%, 0%, 20%)
CIE-LABlab(36.63, 54.25, -71.42)
CIE-LCHlch(36.63, 89.69, 307.22°)
OKLaboklab(47.79% 0.0667 -0.2054)
OKLCHoklch(47.79% 0.216 288)
XYZxyz(16.8883, 9.3379, 58.0275)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35CC #A2CC35
analogous
#3556CC #5F35CC #AB35CC
triadic
#5F35CC #CC5F35 #35CC5F
tetradic
#5F35CC #CC3556 #A2CC35 #35CCAB
square
#5F35CC #CC3556 #A2CC35 #35CCAB
split-complementary
#5F35CC #CCAB35 #56CC35
monochromatic
#311B6B #48279C #5F35CC #8666D8 #AC97E5

Accessibility & contrast

On white

7.32
#5F35CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F35CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35CC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35CC#FFFFFF#000000##FFFFFF
##5F35CC1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#335F7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f35cc;
/* rgb */ color: rgb(95, 53, 204);
/* oklch */ color: oklch(47.8% 0.216 288.0);
Tailwind
colors: {
  custom: {
    50: '#9771dd',
    500: '#5f35cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f35cc;
$custom-light: #9771dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35cc",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 256.689,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47786,
    "c": 0.21595,
    "h": 288
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#5F35CC
secondary
#BDD08D
accent
#E345B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F35CC

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

Preview Lab → · Contrast checker → · Palette generator →

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