#33157A#33157A

#33157A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.155 H 287.3°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#33157A
RGBrgb(51, 21, 122)
HSLhsl(258, 71%, 28%)
HSVhsv(258, 83%, 48%)
CMYKcmyk(58.2%, 82.8%, 0%, 52.2%)
CIE-LABlab(18.56, 40.17, -51.48)
CIE-LCHlch(18.56, 65.30, 307.97°)
OKLaboklab(31.62% 0.0461 -0.1482)
OKLCHoklch(31.62% 0.155 287.3)
XYZxyz(5.1452, 2.6450, 18.6480)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33157A #5C7A15
analogous
#15297A #33157A #65157A
triadic
#33157A #7A3315 #157A33
tetradic
#33157A #7A1529 #5C7A15 #157A65
square
#33157A #7A1529 #5C7A15 #157A65
split-complementary
#33157A #7A6515 #297A15
monochromatic
#0B041A #1D0C46 #33157A #491EAE #622EDB

Accessibility & contrast

On white

13.73
#33157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#33157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33157A
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33157A#FFFFFF#000000##FFFFFF
##33157A1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#123348
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #33157a;
/* rgb */ color: rgb(51, 21, 122);
/* oklch */ color: oklch(31.6% 0.155 287.3);
Tailwind
colors: {
  custom: {
    50: '#7457a1',
    500: '#33157a',
    950: '#000000',
  },
}
SCSS
$custom: #33157a;
$custom-light: #7457a1;
$custom-dark: #000000;
JSON
{
  "hex": "#33157a",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 257.822,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31622,
    "c": 0.1552,
    "h": 287.3
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#33157A
secondary
#8DAF3B
accent
#ED3AB8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33157A

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

Preview Lab → · Contrast checker → · Palette generator →

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