#5F35DA#5F35DA

#5F35DA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.232 H 285.8°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5F35DA
RGBrgb(95, 53, 218)
HSLhsl(255, 69%, 53%)
HSVhsv(255, 76%, 85%)
CMYKcmyk(56.4%, 75.7%, 0%, 14.5%)
CIE-LABlab(37.91, 58.13, -77.39)
CIE-LCHlch(37.91, 96.78, 306.91°)
OKLaboklab(49.08% 0.0632 -0.2228)
OKLCHoklch(49.08% 0.232 285.8)
XYZxyz(18.6435, 10.0400, 67.2716)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35DA #B0DA35
analogous
#355DDA #5F35DA #B235DA
triadic
#5F35DA #DA5F35 #35DA5F
tetradic
#5F35DA #DA355D #B0DA35 #35DAB2
square
#5F35DA #DA355D #B0DA35 #35DAB2
split-complementary
#5F35DA #DAB235 #5DDA35
monochromatic
#31177E #4520B1 #5F35DA #8869E3 #B19CED

Accessibility & contrast

On white

6.98
#5F35DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5F35DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F35DA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35DA#FFFFFF#000000##FFFFFF
##5F35DA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDF
Deuteranopia (green-blind)
#0054D7
Tritanopia (blue-blind)
#226486
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f35da;
/* rgb */ color: rgb(95, 53, 218);
/* oklch */ color: oklch(49.1% 0.232 285.8);
Tailwind
colors: {
  custom: {
    50: '#9971e7',
    500: '#5f35da',
    950: '#000000',
  },
}
SCSS
$custom: #5f35da;
$custom-light: #9971e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35da",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 218
  },
  "hsl": {
    "h": 255.273,
    "s": 69.038,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4908,
    "c": 0.23163,
    "h": 285.8
  },
  "luminance": 0.10041
}

Semantic roles & 50–950 ramp

primary
#5F35DA
secondary
#C7D992
accent
#EC3CBF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F35DA

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

Preview Lab → · Contrast checker → · Palette generator →

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