#5F35AB#5F35AB

#5F35AB is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.178 H 294.5°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5F35AB
RGBrgb(95, 53, 171)
HSLhsl(261, 53%, 44%)
HSVhsv(261, 69%, 67%)
CMYKcmyk(44.4%, 69%, 0%, 32.9%)
CIE-LABlab(33.81, 45.14, -56.57)
CIE-LCHlch(33.81, 72.37, 308.59°)
OKLaboklab(44.92% 0.0736 -0.1618)
OKLCHoklch(44.92% 0.178 294.5)
XYZxyz(13.3411, 7.9190, 39.3458)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35AB #81AB35
analogous
#3546AB #5F35AB #9A35AB
triadic
#5F35AB #AB5F35 #35AB5F
tetradic
#5F35AB #AB3546 #81AB35 #35AB9A
square
#5F35AB #AB3546 #81AB35 #35AB9A
split-complementary
#5F35AB #AB9A35 #46AB35
monochromatic
#2B184E #45277C #5F35AB #7E53CA #A182D8

Accessibility & contrast

On white

8.13
#5F35AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5F35AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35AB
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35AB#FFFFFF#000000##FFFFFF
##5F35AB1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#4A526C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f35ab;
/* rgb */ color: rgb(95, 53, 171);
/* oklch */ color: oklch(44.9% 0.178 294.5);
Tailwind
colors: {
  custom: {
    50: '#936fc5',
    500: '#5f35ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f35ab;
$custom-light: #936fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35ab",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 261.356,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44923,
    "c": 0.17775,
    "h": 294.5
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#5F35AB
secondary
#A8C27A
accent
#DC4CA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F35AB

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

Preview Lab → · Contrast checker → · Palette generator →

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