#5F33AA#5F33AA

#5F33AA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.179 H 295.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5F33AA
RGBrgb(95, 51, 170)
HSLhsl(262, 54%, 43%)
HSVhsv(262, 70%, 67%)
CMYKcmyk(44.1%, 70%, 0%, 33.3%)
CIE-LABlab(33.36, 45.91, -56.72)
CIE-LCHlch(33.36, 72.97, 308.99°)
OKLaboklab(44.57% 0.0758 -0.1622)
OKLCHoklch(44.57% 0.179 295)
XYZxyz(13.1569, 7.7025, 38.8159)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33AA #7EAA33
analogous
#3342AA #5F33AA #9A33AA
triadic
#5F33AA #AA5F33 #33AA5F
tetradic
#5F33AA #AA3342 #7EAA33 #33AA9A
square
#5F33AA #AA3342 #7EAA33 #33AA9A
split-complementary
#5F33AA #AA9A33 #42AA33
monochromatic
#2A174C #45257B #5F33AA #7D50CA #A07FD9

Accessibility & contrast

On white

8.27
#5F33AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5F33AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33AA
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33AA#FFFFFF#000000##FFFFFF
##5F33AA1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#4A506B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f33aa;
/* rgb */ color: rgb(95, 51, 170);
/* oklch */ color: oklch(44.6% 0.179 295.0);
Tailwind
colors: {
  custom: {
    50: '#936ec4',
    500: '#5f33aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f33aa;
$custom-light: #936ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33aa",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 170
  },
  "hsl": {
    "h": 262.185,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44571,
    "c": 0.17907,
    "h": 295
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#5F33AA
secondary
#A6C277
accent
#DD4BA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F33AA

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

Preview Lab → · Contrast checker → · Palette generator →

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