#5F35C2#5F35C2

#5F35C2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.205 H 289.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5F35C2
RGBrgb(95, 53, 194)
HSLhsl(258, 57%, 48%)
HSVhsv(258, 73%, 76%)
CMYKcmyk(51%, 72.7%, 0%, 23.9%)
CIE-LABlab(35.74, 51.48, -67.04)
CIE-LCHlch(35.74, 84.53, 307.52°)
OKLaboklab(46.89% 0.0691 -0.1925)
OKLCHoklch(46.89% 0.205 289.7)
XYZxyz(15.7272, 8.8735, 51.9125)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C2 #98C235
analogous
#3552C2 #5F35C2 #A535C2
triadic
#5F35C2 #C25F35 #35C25F
tetradic
#5F35C2 #C23552 #98C235 #35C2A5
square
#5F35C2 #C23552 #98C235 #35C2A5
split-complementary
#5F35C2 #C2A535 #52C235
monochromatic
#301B62 #472892 #5F35C2 #8360D4 #A891E1

Accessibility & contrast

On white

7.57
#5F35C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5F35C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C2#FFFFFF#000000##FFFFFF
##5F35C21.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#3C5B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f35c2;
/* rgb */ color: rgb(95, 53, 194);
/* oklch */ color: oklch(46.9% 0.205 289.7);
Tailwind
colors: {
  custom: {
    50: '#9670d6',
    500: '#5f35c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c2;
$custom-light: #9670d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c2",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 257.872,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46889,
    "c": 0.20457,
    "h": 289.7
  },
  "luminance": 0.08874
}

Semantic roles & 50–950 ramp

primary
#5F35C2
secondary
#B7CC87
accent
#E047B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F35C2

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

Preview Lab → · Contrast checker → · Palette generator →

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