#320228#320228

#320228 is a very dark, moderate pink. Relative luminance 0.009; OKLCH L 21.8% C 0.090 H 338.3°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#320228
RGBrgb(50, 2, 40)
HSLhsl(313, 92%, 10%)
HSVhsv(313, 96%, 20%)
CMYKcmyk(0%, 96%, 20%, 80.4%)
CIE-LABlab(7.90, 28.24, -12.30)
CIE-LCHlch(7.90, 30.80, 336.47°)
OKLaboklab(21.82% 0.084 -0.0334)
OKLCHoklch(21.82% 0.09 338.3)
XYZxyz(1.7201, 0.8749, 2.0854)
Luminance0.0088 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320228 #02320C
analogous
#240232 #320228 #320210
triadic
#320228 #283202 #022832
tetradic
#320228 #322402 #02320C #021032
square
#320228 #322402 #02320C #021032
split-complementary
#320228 #103202 #023224
monochromatic
#1D0118 #1D0118 #320228 #6D0457 #A80786

Accessibility & contrast

On white

17.87
#320228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#320228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320228
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320228#FFFFFF#000000##FFFFFF
##3202281.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041229
Deuteranopia (green-blind)
#151A27
Tritanopia (blue-blind)
#350414
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #320228;
/* rgb */ color: rgb(50, 2, 40);
/* oklch */ color: oklch(21.8% 0.090 338.3);
Tailwind
colors: {
  custom: {
    50: '#6c4862',
    500: '#320228',
    950: '#000000',
  },
}
SCSS
$custom: #320228;
$custom-light: #6c4862;
$custom-dark: #000000;
JSON
{
  "hex": "#320228",
  "rgb": {
    "r": 50,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 312.5,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.21815,
    "c": 0.09039,
    "h": 338.3
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#320228
secondary
#19762D
accent
#FF5529
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #320228

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

Preview Lab → · Contrast checker → · Palette generator →

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