#5F33A2#5F33A2

#5F33A2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.170 H 297.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5F33A2
RGBrgb(95, 51, 162)
HSLhsl(264, 52%, 42%)
HSVhsv(264, 69%, 64%)
CMYKcmyk(41.4%, 68.5%, 0%, 36.5%)
CIE-LABlab(32.72, 43.74, -52.94)
CIE-LCHlch(32.72, 68.67, 309.57°)
OKLaboklab(43.92% 0.0771 -0.1511)
OKLCHoklch(43.92% 0.17 297)
XYZxyz(12.4230, 7.4090, 34.9510)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33A2 #76A233
analogous
#333EA2 #5F33A2 #9733A2
triadic
#5F33A2 #A25F33 #33A25F
tetradic
#5F33A2 #A2333E #76A233 #33A297
square
#5F33A2 #A2333E #76A233 #33A297
split-complementary
#5F33A2 #A29733 #3EA233
monochromatic
#281645 #442473 #5F33A2 #7C4CC7 #9E7AD5

Accessibility & contrast

On white

8.46
#5F33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5F33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33A2
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33A2#FFFFFF#000000##FFFFFF
##5F33A21.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#4E4D66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f33a2;
/* rgb */ color: rgb(95, 51, 162);
/* oklch */ color: oklch(43.9% 0.170 297.0);
Tailwind
colors: {
  custom: {
    50: '#926ebe',
    500: '#5f33a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f33a2;
$custom-light: #926ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33a2",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 263.784,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43918,
    "c": 0.16966,
    "h": 297
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#5F33A2
secondary
#A0BE73
accent
#DC4CA3
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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