#5F35C8#5F35C8

#5F35C8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.211 H 288.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5F35C8
RGBrgb(95, 53, 200)
HSLhsl(257, 58%, 50%)
HSVhsv(257, 74%, 78%)
CMYKcmyk(52.5%, 73.5%, 0%, 21.6%)
CIE-LABlab(36.27, 53.15, -69.68)
CIE-LCHlch(36.27, 87.63, 307.33°)
OKLaboklab(47.42% 0.0677 -0.2003)
OKLCHoklch(47.42% 0.211 288.7)
XYZxyz(16.4147, 9.1485, 55.5333)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35C8 #9EC835
analogous
#3554C8 #5F35C8 #A935C8
triadic
#5F35C8 #C85F35 #35C85F
tetradic
#5F35C8 #C83554 #9EC835 #35C8A9
square
#5F35C8 #C83554 #9EC835 #35C8A9
split-complementary
#5F35C8 #C8A935 #54C835
monochromatic
#311B67 #482898 #5F35C8 #8564D6 #AB95E3

Accessibility & contrast

On white

7.42
#5F35C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F35C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35C8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35C8#FFFFFF#000000##FFFFFF
##5F35C81.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#375D7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f35c8;
/* rgb */ color: rgb(95, 53, 200);
/* oklch */ color: oklch(47.4% 0.211 288.7);
Tailwind
colors: {
  custom: {
    50: '#9770da',
    500: '#5f35c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f35c8;
$custom-light: #9770da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35c8",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 257.143,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47424,
    "c": 0.21141,
    "h": 288.7
  },
  "luminance": 0.09149
}

Semantic roles & 50–950 ramp

primary
#5F35C8
secondary
#BBCE8B
accent
#E146B5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F35C8

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

Preview Lab → · Contrast checker → · Palette generator →

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