#33198E#33198E

#33198E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.175 H 282.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#33198E
RGBrgb(51, 25, 142)
HSLhsl(253, 70%, 33%)
HSVhsv(253, 82%, 56%)
CMYKcmyk(64.1%, 82.4%, 0%, 44.3%)
CIE-LABlab(21.40, 44.24, -59.41)
CIE-LCHlch(21.40, 74.08, 306.67°)
OKLaboklab(34.24% 0.0368 -0.1714)
OKLCHoklch(34.24% 0.175 282.1)
XYZxyz(6.5938, 3.3516, 25.8854)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33198E #748E19
analogous
#193A8E #33198E #6D198E
triadic
#33198E #8E3319 #198E33
tetradic
#33198E #8E193A #748E19 #198E6D
square
#33198E #8E193A #748E19 #198E6D
split-complementary
#33198E #8E6D19 #3A8E19
monochromatic
#0E0726 #20105A #33198E #4622C2 #6643DE

Accessibility & contrast

On white

12.57
#33198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#33198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33198E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33198E#FFFFFF#000000##FFFFFF
##33198E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #33198e;
/* rgb */ color: rgb(51, 25, 142);
/* oklch */ color: oklch(34.2% 0.175 282.1);
Tailwind
colors: {
  custom: {
    50: '#785bb0',
    500: '#33198e',
    950: '#000000',
  },
}
SCSS
$custom: #33198e;
$custom-light: #785bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#33198e",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 253.333,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34242,
    "c": 0.17531,
    "h": 282.1
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#33198E
secondary
#A4BF44
accent
#ED3BC5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #33198E

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

Preview Lab → · Contrast checker → · Palette generator →

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