#5F35AA#5F35AA

#5F35AA is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.177 H 294.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5F35AA
RGBrgb(95, 53, 170)
HSLhsl(262, 52%, 44%)
HSVhsv(262, 69%, 67%)
CMYKcmyk(44.1%, 68.8%, 0%, 33.3%)
CIE-LABlab(33.73, 44.86, -56.10)
CIE-LCHlch(33.73, 71.83, 308.65°)
OKLaboklab(44.84% 0.0737 -0.1604)
OKLCHoklch(44.84% 0.177 294.7)
XYZxyz(13.2462, 7.8810, 38.8457)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35AA #80AA35
analogous
#3546AA #5F35AA #9935AA
triadic
#5F35AA #AA5F35 #35AA5F
tetradic
#5F35AA #AA3546 #80AA35 #35AA99
square
#5F35AA #AA3546 #80AA35 #35AA99
split-complementary
#5F35AA #AA9935 #46AA35
monochromatic
#2B184D #45267B #5F35AA #7D53C9 #A182D8

Accessibility & contrast

On white

8.15
#5F35AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F35AA
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35AA#FFFFFF#000000##FFFFFF
##5F35AA1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#4A526B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f35aa;
/* rgb */ color: rgb(95, 53, 170);
/* oklch */ color: oklch(44.8% 0.177 294.7);
Tailwind
colors: {
  custom: {
    50: '#936fc4',
    500: '#5f35aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f35aa;
$custom-light: #936fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35aa",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 170
  },
  "hsl": {
    "h": 261.538,
    "s": 52.466,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44841,
    "c": 0.17657,
    "h": 294.7
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#5F35AA
secondary
#A8C17A
accent
#DC4CA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F35AA

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

Preview Lab → · Contrast checker → · Palette generator →

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