#5F35AE#5F35AE

#5F35AE is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.181 H 293.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5F35AE
RGBrgb(95, 53, 174)
HSLhsl(261, 53%, 45%)
HSVhsv(261, 70%, 68%)
CMYKcmyk(45.4%, 69.5%, 0%, 31.8%)
CIE-LABlab(34.05, 45.96, -57.97)
CIE-LCHlch(34.05, 73.98, 308.41°)
OKLaboklab(45.17% 0.0731 -0.1659)
OKLCHoklch(45.17% 0.181 293.8)
XYZxyz(13.6303, 8.0347, 40.8689)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35AE #84AE35
analogous
#3548AE #5F35AE #9B35AE
triadic
#5F35AE #AE5F35 #35AE5F
tetradic
#5F35AE #AE3548 #84AE35 #35AE9B
square
#5F35AE #AE3548 #84AE35 #35AE9B
split-complementary
#5F35AE #AE9B35 #48AE35
monochromatic
#2C1850 #45277F #5F35AE #7E55CB #A284DA

Accessibility & contrast

On white

8.06
#5F35AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F35AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F35AE
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35AE#FFFFFF#000000##FFFFFF
##5F35AE1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#48536D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f35ae;
/* rgb */ color: rgb(95, 53, 174);
/* oklch */ color: oklch(45.2% 0.181 293.8);
Tailwind
colors: {
  custom: {
    50: '#936fc7',
    500: '#5f35ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f35ae;
$custom-light: #936fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35ae",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 174
  },
  "hsl": {
    "h": 260.826,
    "s": 53.304,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45171,
    "c": 0.1813,
    "h": 293.8
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#5F35AE
secondary
#AAC37C
accent
#DD4BAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F35AE

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

Preview Lab → · Contrast checker → · Palette generator →

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