#33158A#33158A

#33158A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.174 H 283.4°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#33158A
RGBrgb(51, 21, 138)
HSLhsl(255, 74%, 31%)
HSVhsv(255, 85%, 54%)
CMYKcmyk(63%, 84.8%, 0%, 45.9%)
CIE-LABlab(20.34, 44.84, -58.67)
CIE-LCHlch(20.34, 73.84, 307.39°)
OKLaboklab(33.38% 0.0404 -0.1692)
OKLCHoklch(33.38% 0.174 283.4)
XYZxyz(6.2194, 3.0747, 24.3056)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33158A #6C8A15
analogous
#15318A #33158A #6D158A
triadic
#33158A #8A3315 #158A33
tetradic
#33158A #8A1531 #6C8A15 #158A6D
square
#33158A #8A1531 #6C8A15 #158A6D
split-complementary
#33158A #8A6D15 #318A15
monochromatic
#0C0520 #1F0D55 #33158A #471DBF #6439E1

Accessibility & contrast

On white

13.00
#33158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#33158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33158A
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33158A#FFFFFF#000000##FFFFFF
##33158A1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #33158a;
/* rgb */ color: rgb(51, 21, 138);
/* oklch */ color: oklch(33.4% 0.174 283.4);
Tailwind
colors: {
  custom: {
    50: '#7758ad',
    500: '#33158a',
    950: '#000000',
  },
}
SCSS
$custom: #33158a;
$custom-light: #7758ad;
$custom-dark: #000000;
JSON
{
  "hex": "#33158a",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 255.385,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33378,
    "c": 0.17392,
    "h": 283.4
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#33158A
secondary
#9DBE3D
accent
#F038C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33158A

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

Preview Lab → · Contrast checker → · Palette generator →

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