#331233#331233

#331233 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.9% C 0.073 H 327.5°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#331233
RGBrgb(51, 18, 51)
HSLhsl(300, 48%, 14%)
HSVhsv(300, 65%, 20%)
CMYKcmyk(0%, 64.7%, 0%, 80%)
CIE-LABlab(11.79, 22.24, -14.32)
CIE-LCHlch(11.79, 26.45, 327.22°)
OKLaboklab(24.89% 0.0619 -0.0394)
OKLCHoklch(24.89% 0.073 327.5)
XYZxyz(2.1791, 1.3756, 3.2821)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331233 #123312
analogous
#221233 #331233 #331222
triadic
#331233 #333312 #123333
tetradic
#331233 #332212 #123312 #122233
square
#331233 #332212 #123312 #122233
split-complementary
#331233 #223312 #123322
monochromatic
#170817 #170817 #331233 #602260 #8D328D

Accessibility & contrast

On white

16.47
#331233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#331233 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331233
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331233#FFFFFF#000000##FFFFFF
##3312331.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1C34
Deuteranopia (green-blind)
#192132
Tritanopia (blue-blind)
#351620
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331233;
/* rgb */ color: rgb(51, 18, 51);
/* oklch */ color: oklch(24.9% 0.073 327.5);
Tailwind
colors: {
  custom: {
    50: '#6c526a',
    500: '#331233',
    950: '#000000',
  },
}
SCSS
$custom: #331233;
$custom-light: #6c526a;
$custom-dark: #000000;
JSON
{
  "hex": "#331233",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 51
  },
  "hsl": {
    "h": 300,
    "s": 47.826,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24891,
    "c": 0.07335,
    "h": 327.5
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#331233
secondary
#356B35
accent
#D75050
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331233

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

Preview Lab → · Contrast checker → · Palette generator →

#331233 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva