#33156A#33156A

#33156A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.136 H 292.2°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#33156A
RGBrgb(51, 21, 106)
HSLhsl(261, 67%, 25%)
HSVhsv(261, 80%, 42%)
CMYKcmyk(51.9%, 80.2%, 0%, 58.4%)
CIE-LABlab(16.90, 35.46, -43.87)
CIE-LCHlch(16.90, 56.40, 308.95°)
OKLaboklab(29.96% 0.0513 -0.1259)
OKLCHoklch(29.96% 0.136 292.2)
XYZxyz(4.2342, 2.2806, 13.8500)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33156A #4C6A15
analogous
#15226A #33156A #5D156A
triadic
#33156A #6A3315 #156A33
tetradic
#33156A #6A1522 #4C6A15 #156A5D
square
#33156A #6A1522 #4C6A15 #156A5D
split-complementary
#33156A #6A5D15 #226A15
monochromatic
#0C051A #1A0B37 #33156A #4C1F9D #6429D0

Accessibility & contrast

On white

14.42
#33156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#33156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33156A
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33156A#FFFFFF#000000##FFFFFF
##33156A1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#212C3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #33156a;
/* rgb */ color: rgb(51, 21, 106);
/* oklch */ color: oklch(30.0% 0.136 292.2);
Tailwind
colors: {
  custom: {
    50: '#715695',
    500: '#33156a',
    950: '#000000',
  },
}
SCSS
$custom: #33156a;
$custom-light: #715695;
$custom-dark: #000000;
JSON
{
  "hex": "#33156a",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 261.176,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29957,
    "c": 0.13597,
    "h": 292.2
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#33156A
secondary
#7CA13A
accent
#EA3EAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33156A

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

Preview Lab → · Contrast checker → · Palette generator →

#33156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva