#5F35AF#5F35AF

#5F35AF is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.182 H 293.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5F35AF
RGBrgb(95, 53, 175)
HSLhsl(261, 54%, 45%)
HSVhsv(261, 70%, 69%)
CMYKcmyk(45.7%, 69.7%, 0%, 31.4%)
CIE-LABlab(34.14, 46.23, -58.43)
CIE-LCHlch(34.14, 74.51, 308.35°)
OKLaboklab(45.25% 0.0729 -0.1673)
OKLCHoklch(45.25% 0.182 293.5)
XYZxyz(13.7282, 8.0738, 41.3842)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F35AF #85AF35
analogous
#3548AF #5F35AF #9C35AF
triadic
#5F35AF #AF5F35 #35AF5F
tetradic
#5F35AF #AF3548 #85AF35 #35AF9C
square
#5F35AF #AF3548 #85AF35 #35AF9C
split-complementary
#5F35AF #AF9C35 #48AF35
monochromatic
#2C1951 #462780 #5F35AF #7E56CC #A285DA

Accessibility & contrast

On white

8.03
#5F35AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F35AF
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F35AF#FFFFFF#000000##FFFFFF
##5F35AF1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#48536E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f35af;
/* rgb */ color: rgb(95, 53, 175);
/* oklch */ color: oklch(45.3% 0.182 293.5);
Tailwind
colors: {
  custom: {
    50: '#936fc8',
    500: '#5f35af',
    950: '#000000',
  },
}
SCSS
$custom: #5f35af;
$custom-light: #936fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f35af",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 260.656,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45254,
    "c": 0.18249,
    "h": 293.5
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#5F35AF
secondary
#ABC47C
accent
#DD4BAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F35AF

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

Preview Lab → · Contrast checker → · Palette generator →

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