#32227C#32227C

#32227C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.144 H 283.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#32227C
RGBrgb(50, 34, 124)
HSLhsl(251, 57%, 31%)
HSVhsv(251, 73%, 49%)
CMYKcmyk(59.7%, 72.6%, 0%, 51.4%)
CIE-LABlab(21.12, 33.68, -48.55)
CIE-LCHlch(21.12, 59.09, 304.75°)
OKLaboklab(33.46% 0.0337 -0.1398)
OKLCHoklch(33.46% 0.144 283.6)
XYZxyz(5.5244, 3.2771, 19.4063)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#32227C #6C7C22
analogous
#223F7C #32227C #5F227C
triadic
#32227C #7C3222 #227C32
tetradic
#32227C #7C223F #6C7C22 #227C5F
square
#32227C #7C223F #6C7C22 #227C5F
split-complementary
#32227C #7C5F22 #3F7C22
monochromatic
#0B081C #1F154C #32227C #452FAC #624BCE

Accessibility & contrast

On white

12.69
#32227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #32227C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##32227C#FFFFFF#000000##FFFFFF
##32227C1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#093A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #32227c;
/* rgb */ color: rgb(50, 34, 124);
/* oklch */ color: oklch(33.5% 0.144 283.6);
Tailwind
colors: {
  custom: {
    50: '#735fa3',
    500: '#32227c',
    950: '#000000',
  },
}
SCSS
$custom: #32227c;
$custom-light: #735fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#32227c",
  "rgb": {
    "r": 50,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 250.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3346,
    "c": 0.14378,
    "h": 283.6
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#32227C
secondary
#9DAF4B
accent
#E048C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #32227C

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

Preview Lab → · Contrast checker → · Palette generator →

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