#5F33AC#5F33AC

#5F33AC is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.181 H 294.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5F33AC
RGBrgb(95, 51, 172)
HSLhsl(262, 54%, 44%)
HSVhsv(262, 70%, 67%)
CMYKcmyk(44.8%, 70.3%, 0%, 32.5%)
CIE-LABlab(33.52, 46.45, -57.65)
CIE-LCHlch(33.52, 74.03, 308.86°)
OKLaboklab(44.74% 0.0754 -0.165)
OKLCHoklch(44.74% 0.181 294.6)
XYZxyz(13.3475, 7.7788, 39.8199)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33AC #80AC33
analogous
#3343AC #5F33AC #9B33AC
triadic
#5F33AC #AC5F33 #33AC5F
tetradic
#5F33AC #AC3343 #80AC33 #33AC9B
square
#5F33AC #AC3343 #80AC33 #33AC9B
split-complementary
#5F33AC #AC9B33 #43AC33
monochromatic
#2B174E #45257D #5F33AC #7D51CB #A180D9

Accessibility & contrast

On white

8.22
#5F33AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5F33AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33AC
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33AC#FFFFFF#000000##FFFFFF
##5F33AC1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#49516C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f33ac;
/* rgb */ color: rgb(95, 51, 172);
/* oklch */ color: oklch(44.7% 0.181 294.6);
Tailwind
colors: {
  custom: {
    50: '#936ec6',
    500: '#5f33ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f33ac;
$custom-light: #936ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33ac",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 172
  },
  "hsl": {
    "h": 261.818,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44737,
    "c": 0.1814,
    "h": 294.6
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#5F33AC
secondary
#A8C278
accent
#DE4AA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F33AC

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

Preview Lab → · Contrast checker → · Palette generator →

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