#33158D#33158D

#33158D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.177 H 282.8°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#33158D
RGBrgb(51, 21, 141)
HSLhsl(255, 74%, 32%)
HSVhsv(255, 85%, 55%)
CMYKcmyk(63.8%, 85.1%, 0%, 44.7%)
CIE-LABlab(20.68, 45.71, -59.97)
CIE-LCHlch(20.68, 75.41, 307.31°)
OKLaboklab(33.72% 0.0393 -0.173)
OKLCHoklch(33.72% 0.177 282.8)
XYZxyz(6.4396, 3.1628, 25.4653)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33158D #6F8D15
analogous
#15338D #33158D #6F158D
triadic
#33158D #8D3315 #158D33
tetradic
#33158D #8D1533 #6F8D15 #158D6F
square
#33158D #8D1533 #6F8D15 #158D6F
split-complementary
#33158D #8D6F15 #338D15
monochromatic
#0C0522 #200D58 #33158D #461DC2 #643BE2

Accessibility & contrast

On white

12.86
#33158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#33158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33158D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33158D#FFFFFF#000000##FFFFFF
##33158D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33158d;
/* rgb */ color: rgb(51, 21, 141);
/* oklch */ color: oklch(33.7% 0.177 282.8);
Tailwind
colors: {
  custom: {
    50: '#7859b0',
    500: '#33158d',
    950: '#000000',
  },
}
SCSS
$custom: #33158d;
$custom-light: #7859b0;
$custom-dark: #000000;
JSON
{
  "hex": "#33158d",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 255,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.17737,
    "h": 282.8
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#33158D
secondary
#A0C13D
accent
#F137C2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33158D

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

Preview Lab → · Contrast checker → · Palette generator →

#33158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva