#33156F#33156F

#33156F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.142 H 290.5°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#33156F
RGBrgb(51, 21, 111)
HSLhsl(260, 68%, 26%)
HSVhsv(260, 81%, 44%)
CMYKcmyk(54.1%, 81.1%, 0%, 56.5%)
CIE-LABlab(17.40, 36.93, -46.30)
CIE-LCHlch(17.40, 59.22, 308.58°)
OKLaboklab(30.47% 0.0497 -0.133)
OKLCHoklch(30.47% 0.142 290.5)
XYZxyz(4.5018, 2.3876, 15.2595)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33156F #516F15
analogous
#15246F #33156F #60156F
triadic
#33156F #6F3315 #156F33
tetradic
#33156F #6F1524 #516F15 #156F60
square
#33156F #6F1524 #516F15 #156F60
split-complementary
#33156F #6F6015 #246F15
monochromatic
#0C051A #1B0B3C #33156F #4B1FA2 #6228D6

Accessibility & contrast

On white

14.21
#33156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#33156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33156F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33156F#FFFFFF#000000##FFFFFF
##33156F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#1D2E41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #33156f;
/* rgb */ color: rgb(51, 21, 111);
/* oklch */ color: oklch(30.5% 0.142 290.5);
Tailwind
colors: {
  custom: {
    50: '#725699',
    500: '#33156f',
    950: '#000000',
  },
}
SCSS
$custom: #33156f;
$custom-light: #725699;
$custom-dark: #000000;
JSON
{
  "hex": "#33156f",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 260,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30466,
    "c": 0.14203,
    "h": 290.5
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#33156F
secondary
#82A53A
accent
#EB3DB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #33156F

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

Preview Lab → · Contrast checker → · Palette generator →

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