#512125#512125

#512125 is a dark, moderate red. Relative luminance 0.030; OKLCH L 31.9% C 0.072 H 17.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#512125
RGBrgb(81, 33, 37)
HSLhsl(355, 42%, 22%)
HSVhsv(355, 59%, 32%)
CMYKcmyk(0%, 59.3%, 54.3%, 68.2%)
CIE-LABlab(19.93, 22.90, 8.32)
CIE-LCHlch(19.93, 24.37, 19.97°)
OKLaboklab(31.86% 0.0689 0.021)
OKLCHoklch(31.86% 0.072 17)
XYZxyz(4.2714, 2.9711, 2.0984)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512125 #21514D
analogous
#51213D #512125 #513521
triadic
#512125 #255121 #212551
tetradic
#512125 #3D5121 #21514D #352151
square
#512125 #3D5121 #21514D #352151
split-complementary
#512125 #215135 #213D51
monochromatic
#16090A #260F11 #512125 #7C3339 #A8444D

Accessibility & contrast

On white

13.17
#512125 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#512125 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512125
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512125#FFFFFF#000000##FFFFFF
##5121251.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2A25
Deuteranopia (green-blind)
#383424
Tritanopia (blue-blind)
#591A23
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #512125;
/* rgb */ color: rgb(81, 33, 37);
/* oklch */ color: oklch(31.9% 0.072 17.0);
Tailwind
colors: {
  custom: {
    50: '#855e5f',
    500: '#512125',
    950: '#000000',
  },
}
SCSS
$custom: #512125;
$custom-light: #855e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#512125",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 37
  },
  "hsl": {
    "h": 355,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31856,
    "c": 0.07205,
    "h": 17
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#512125
secondary
#498580
accent
#D2C856
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0B0404
muted
#7C7979

Preview Lab

Preview with #512125

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

Preview Lab → · Contrast checker → · Palette generator →

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