#512228#512228

#512228 is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.1% C 0.071 H 14.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#512228
RGBrgb(81, 34, 40)
HSLhsl(352, 41%, 23%)
HSVhsv(352, 58%, 32%)
CMYKcmyk(0%, 58%, 50.6%, 68.2%)
CIE-LABlab(20.23, 22.66, 6.66)
CIE-LCHlch(20.23, 23.62, 16.37°)
OKLaboklab(32.11% 0.0685 0.0171)
OKLCHoklch(32.11% 0.071 14)
XYZxyz(4.3487, 3.0471, 2.3662)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512228 #22514B
analogous
#512240 #512228 #513322
triadic
#512228 #285122 #222851
tetradic
#512228 #405122 #22514B #332251
square
#512228 #405122 #22514B #332251
split-complementary
#512228 #225133 #224051
monochromatic
#16090B #261013 #512228 #7C343D #A74653

Accessibility & contrast

On white

13.05
#512228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#512228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512228
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512228#FFFFFF#000000##FFFFFF
##5122281.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2B28
Deuteranopia (green-blind)
#383427
Tritanopia (blue-blind)
#581C24
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #512228;
/* rgb */ color: rgb(81, 34, 40);
/* oklch */ color: oklch(32.1% 0.071 14.0);
Tailwind
colors: {
  custom: {
    50: '#855f61',
    500: '#512228',
    950: '#000000',
  },
}
SCSS
$custom: #512228;
$custom-light: #855f61;
$custom-dark: #000000;
JSON
{
  "hex": "#512228",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 352.34,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32111,
    "c": 0.07057,
    "h": 14
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#512228
secondary
#4A857D
accent
#D1C157
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0405
muted
#7C7979

Preview Lab

Preview with #512228

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

Preview Lab → · Contrast checker → · Palette generator →

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