#5F33AF#5F33AF

#5F33AF is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.185 H 293.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5F33AF
RGBrgb(95, 51, 175)
HSLhsl(261, 55%, 44%)
HSVhsv(261, 71%, 69%)
CMYKcmyk(45.7%, 70.9%, 0%, 31.4%)
CIE-LABlab(33.76, 47.27, -59.04)
CIE-LCHlch(33.76, 75.63, 308.68°)
OKLaboklab(44.99% 0.0749 -0.1691)
OKLCHoklch(44.99% 0.185 293.9)
XYZxyz(13.6389, 7.8953, 41.3545)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33AF #83AF33
analogous
#3345AF #5F33AF #9D33AF
triadic
#5F33AF #AF5F33 #33AF5F
tetradic
#5F33AF #AF3345 #83AF33 #33AF9D
square
#5F33AF #AF3345 #83AF33 #33AF9D
split-complementary
#5F33AF #AF9D33 #45AF33
monochromatic
#2C1750 #452580 #5F33AF #7E52CD #A182DB

Accessibility & contrast

On white

8.14
#5F33AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F33AF
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33AF#FFFFFF#000000##FFFFFF
##5F33AF1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#48526D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f33af;
/* rgb */ color: rgb(95, 51, 175);
/* oklch */ color: oklch(45.0% 0.185 293.9);
Tailwind
colors: {
  custom: {
    50: '#946ec8',
    500: '#5f33af',
    950: '#000000',
  },
}
SCSS
$custom: #5f33af;
$custom-light: #946ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33af",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 175
  },
  "hsl": {
    "h": 261.29,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44989,
    "c": 0.1849,
    "h": 293.9
  },
  "luminance": 0.07896
}

Semantic roles & 50–950 ramp

primary
#5F33AF
secondary
#AAC47A
accent
#DE4AA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F33AF

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

Preview Lab → · Contrast checker → · Palette generator →

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