#33198A#33198A

#33198A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.171 H 282.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#33198A
RGBrgb(51, 25, 138)
HSLhsl(254, 69%, 32%)
HSVhsv(254, 82%, 54%)
CMYKcmyk(63%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.96, 43.04, -57.65)
CIE-LCHlch(20.96, 71.95, 306.75°)
OKLaboklab(33.8% 0.0381 -0.1663)
OKLCHoklch(33.8% 0.171 282.9)
XYZxyz(6.2989, 3.2336, 24.3321)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33198A #708A19
analogous
#19388A #33198A #6C198A
triadic
#33198A #8A3319 #198A33
tetradic
#33198A #8A1938 #708A19 #198A6C
square
#33198A #8A1938 #708A19 #198A6C
split-complementary
#33198A #8A6C19 #388A19
monochromatic
#0D0622 #201056 #33198A #4622BE #6541DD

Accessibility & contrast

On white

12.75
#33198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#33198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33198A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33198A#FFFFFF#000000##FFFFFF
##33198A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #33198a;
/* rgb */ color: rgb(51, 25, 138);
/* oklch */ color: oklch(33.8% 0.171 282.9);
Tailwind
colors: {
  custom: {
    50: '#775aad',
    500: '#33198a',
    950: '#000000',
  },
}
SCSS
$custom: #33198a;
$custom-light: #775aad;
$custom-dark: #000000;
JSON
{
  "hex": "#33198a",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 253.805,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.17058,
    "h": 282.9
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#33198A
secondary
#A1BD42
accent
#EC3CC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #33198A

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

Preview Lab → · Contrast checker → · Palette generator →

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