#33157C#33157C

#33157C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.158 H 286.7°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#33157C
RGBrgb(51, 21, 124)
HSLhsl(257, 71%, 28%)
HSVhsv(257, 83%, 49%)
CMYKcmyk(58.9%, 83.1%, 0%, 51.4%)
CIE-LABlab(18.78, 40.76, -52.40)
CIE-LCHlch(18.78, 66.38, 307.88°)
OKLaboklab(31.84% 0.0454 -0.1509)
OKLCHoklch(31.84% 0.158 286.7)
XYZxyz(5.2704, 2.6951, 19.3074)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33157C #5E7C15
analogous
#152A7C #33157C #66157C
triadic
#33157C #7C3315 #157C33
tetradic
#33157C #7C152A #5E7C15 #157C66
square
#33157C #7C152A #5E7C15 #157C66
split-complementary
#33157C #7C6615 #2A7C15
monochromatic
#0B041A #1D0C48 #33157C #491EB0 #6230DC

Accessibility & contrast

On white

13.65
#33157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#33157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33157C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33157C#FFFFFF#000000##FFFFFF
##33157C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#0F3449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #33157c;
/* rgb */ color: rgb(51, 21, 124);
/* oklch */ color: oklch(31.8% 0.158 286.7);
Tailwind
colors: {
  custom: {
    50: '#7557a3',
    500: '#33157c',
    950: '#000000',
  },
}
SCSS
$custom: #33157c;
$custom-light: #7557a3;
$custom-dark: #000000;
JSON
{
  "hex": "#33157c",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 257.476,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.15757,
    "h": 286.7
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#33157C
secondary
#8FB13C
accent
#EE3AB9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #33157C

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

Preview Lab → · Contrast checker → · Palette generator →

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