#33156C#33156C

#33156C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.138 H 291.5°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#33156C
RGBrgb(51, 21, 108)
HSLhsl(261, 67%, 25%)
HSVhsv(261, 81%, 42%)
CMYKcmyk(52.8%, 80.6%, 0%, 57.6%)
CIE-LABlab(17.10, 36.04, -44.84)
CIE-LCHlch(17.10, 57.53, 308.79°)
OKLaboklab(30.16% 0.0507 -0.1288)
OKLCHoklch(30.16% 0.138 291.5)
XYZxyz(4.3394, 2.3227, 14.4041)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33156C #4E6C15
analogous
#15226C #33156C #5F156C
triadic
#33156C #6C3315 #156C33
tetradic
#33156C #6C1522 #4E6C15 #156C5F
square
#33156C #6C1522 #4E6C15 #156C5F
split-complementary
#33156C #6C5F15 #226C15
monochromatic
#0C051A #1B0B39 #33156C #4B1F9F #6329D2

Accessibility & contrast

On white

14.34
#33156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #33156C
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33156C#FFFFFF#000000##FFFFFF
##33156C1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#202D40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #33156c;
/* rgb */ color: rgb(51, 21, 108);
/* oklch */ color: oklch(30.2% 0.138 291.5);
Tailwind
colors: {
  custom: {
    50: '#725697',
    500: '#33156c',
    950: '#000000',
  },
}
SCSS
$custom: #33156c;
$custom-light: #725697;
$custom-dark: #000000;
JSON
{
  "hex": "#33156c",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 260.69,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3016,
    "c": 0.1384,
    "h": 291.5
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#33156C
secondary
#7FA33A
accent
#EA3DAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #33156C

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

Preview Lab → · Contrast checker → · Palette generator →

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