#33157F#33157F

#33157F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.161 H 286.0°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#33157F
RGBrgb(51, 21, 127)
HSLhsl(257, 72%, 29%)
HSVhsv(257, 83%, 50%)
CMYKcmyk(59.8%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.11, 41.64, -53.77)
CIE-LCHlch(19.11, 68.00, 307.75°)
OKLaboklab(32.16% 0.0443 -0.1549)
OKLCHoklch(32.16% 0.161 286)
XYZxyz(5.4630, 2.7721, 20.3218)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33157F #617F15
analogous
#152C7F #33157F #68157F
triadic
#33157F #7F3315 #157F33
tetradic
#33157F #7F152C #617F15 #157F68
square
#33157F #7F152C #617F15 #157F68
split-complementary
#33157F #7F6815 #2C7F15
monochromatic
#0B041A #1E0C4A #33157F #481EB4 #6231DD

Accessibility & contrast

On white

13.51
#33157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#33157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33157F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33157F#FFFFFF#000000##FFFFFF
##33157F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#0A354B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33157f;
/* rgb */ color: rgb(51, 21, 127);
/* oklch */ color: oklch(32.2% 0.161 286.0);
Tailwind
colors: {
  custom: {
    50: '#7557a5',
    500: '#33157f',
    950: '#000000',
  },
}
SCSS
$custom: #33157f;
$custom-light: #7557a5;
$custom-dark: #000000;
JSON
{
  "hex": "#33157f",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 256.981,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32162,
    "c": 0.1611,
    "h": 286
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#33157F
secondary
#92B43C
accent
#EE39BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33157F

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

Preview Lab → · Contrast checker → · Palette generator →

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