#33178C#33178C

#33178C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.175 H 282.8°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#33178C
RGBrgb(51, 23, 140)
HSLhsl(254, 72%, 32%)
HSVhsv(254, 84%, 55%)
CMYKcmyk(63.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(20.86, 44.56, -59.05)
CIE-LCHlch(20.86, 73.98, 307.04°)
OKLaboklab(33.81% 0.0386 -0.1703)
OKLCHoklch(33.81% 0.175 282.8)
XYZxyz(6.4038, 3.2096, 25.0879)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33178C #708C17
analogous
#17368C #33178C #6E178C
triadic
#33178C #8C3317 #178C33
tetradic
#33178C #8C1736 #708C17 #178C6E
square
#33178C #8C1736 #708C17 #178C6E
split-complementary
#33178C #8C6E17 #368C17
monochromatic
#0D0623 #200E57 #33178C #4620C1 #653EDF

Accessibility & contrast

On white

12.79
#33178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#33178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33178C
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33178C#FFFFFF#000000##FFFFFF
##33178C1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33178c;
/* rgb */ color: rgb(51, 23, 140);
/* oklch */ color: oklch(33.8% 0.175 282.8);
Tailwind
colors: {
  custom: {
    50: '#7859af',
    500: '#33178c',
    950: '#000000',
  },
}
SCSS
$custom: #33178c;
$custom-light: #7859af;
$custom-dark: #000000;
JSON
{
  "hex": "#33178c",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 254.359,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.17464,
    "h": 282.8
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#33178C
secondary
#A1BF3F
accent
#EF39C3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33178C

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

Preview Lab → · Contrast checker → · Palette generator →

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