#33198C#33198C

#33198C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.173 H 282.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#33198C
RGBrgb(51, 25, 140)
HSLhsl(254, 70%, 32%)
HSVhsv(254, 82%, 55%)
CMYKcmyk(63.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(21.18, 43.64, -58.53)
CIE-LCHlch(21.18, 73.01, 306.71°)
OKLaboklab(34.02% 0.0375 -0.1688)
OKLCHoklch(34.02% 0.173 282.5)
XYZxyz(6.4450, 3.2921, 25.1017)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33198C #728C19
analogous
#19398C #33198C #6C198C
triadic
#33198C #8C3319 #198C33
tetradic
#33198C #8C1939 #728C19 #198C6C
square
#33198C #8C1939 #728C19 #198C6C
split-complementary
#33198C #8C6C19 #398C19
monochromatic
#0D0624 #201058 #33198C #4622C0 #6542DD

Accessibility & contrast

On white

12.66
#33198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#33198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33198C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33198C#FFFFFF#000000##FFFFFF
##33198C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33198c;
/* rgb */ color: rgb(51, 25, 140);
/* oklch */ color: oklch(34.0% 0.173 282.5);
Tailwind
colors: {
  custom: {
    50: '#775aaf',
    500: '#33198c',
    950: '#000000',
  },
}
SCSS
$custom: #33198c;
$custom-light: #775aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#33198c",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 253.565,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34022,
    "c": 0.17295,
    "h": 282.5
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#33198C
secondary
#A2BE43
accent
#ED3BC4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33198C

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

Preview Lab → · Contrast checker → · Palette generator →

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