#512227#512227

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

Color values

HEX#512227
RGBrgb(81, 34, 39)
HSLhsl(354, 41%, 23%)
HSVhsv(354, 58%, 32%)
CMYKcmyk(0%, 58%, 51.9%, 68.2%)
CIE-LABlab(20.20, 22.55, 7.31)
CIE-LCHlch(20.20, 23.70, 17.97°)
OKLaboklab(32.08% 0.068 0.0187)
OKLCHoklch(32.08% 0.071 15.3)
XYZxyz(4.3319, 3.0403, 2.2778)
Luminance0.0304 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512227 #22514C
analogous
#51223F #512227 #513422
triadic
#512227 #275122 #222751
tetradic
#512227 #3F5122 #22514C #342251
square
#512227 #3F5122 #22514C #342251
split-complementary
#512227 #225134 #223F51
monochromatic
#16090A #261012 #512227 #7C343C #A74651

Accessibility & contrast

On white

13.06
#512227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512227
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512227#FFFFFF#000000##FFFFFF
##5122271.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512227;
/* rgb */ color: rgb(81, 34, 39);
/* oklch */ color: oklch(32.1% 0.071 15.3);
Tailwind
colors: {
  custom: {
    50: '#855f60',
    500: '#512227',
    950: '#000000',
  },
}
SCSS
$custom: #512227;
$custom-light: #855f60;
$custom-dark: #000000;
JSON
{
  "hex": "#512227",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 353.617,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32082,
    "c": 0.07053,
    "h": 15.3
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#512227
secondary
#4A857F
accent
#D1C457
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0405
muted
#7C7979

Preview Lab

Preview with #512227

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

Preview Lab → · Contrast checker → · Palette generator →

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