#51512E#51512E

#51512E is a dark, muted yellow. Relative luminance 0.078; OKLCH L 42.6% C 0.053 H 108.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#51512E
RGBrgb(81, 81, 46)
HSLhsl(60, 28%, 25%)
HSVhsv(60, 43%, 32%)
CMYKcmyk(0%, 0%, 43.2%, 68.2%)
CIE-LABlab(33.63, -6.06, 20.58)
CIE-LCHlch(33.63, 21.45, 106.41°)
OKLaboklab(42.57% -0.0167 0.0501)
OKLCHoklch(42.57% 0.053 108.4)
XYZxyz(6.8290, 7.8316, 3.7361)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51512E #2E2E51
analogous
#51402E #51512E #40512E
triadic
#51512E #2E5151 #512E51
tetradic
#51512E #2E5140 #2E2E51 #512E40
square
#51512E #2E5140 #2E2E51 #512E40
split-complementary
#51512E #2E4051 #402E51
monochromatic
#14140B #2A2A18 #51512E #787844 #9F9F5A

Accessibility & contrast

On white

8.18
#51512E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#51512E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51512E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51512E#FFFFFF#000000##FFFFFF
##51512E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564E2B
Deuteranopia (green-blind)
#575030
Tritanopia (blue-blind)
#564D48
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #51512e;
/* rgb */ color: rgb(81, 81, 46);
/* oklch */ color: oklch(42.6% 0.053 108.4);
Tailwind
colors: {
  custom: {
    50: '#828167',
    500: '#51512e',
    950: '#000000',
  },
}
SCSS
$custom: #51512e;
$custom-light: #828167;
$custom-dark: #000000;
JSON
{
  "hex": "#51512e",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 46
  },
  "hsl": {
    "h": 60,
    "s": 27.559,
    "l": 24.902
  },
  "oklch": {
    "l": 0.42572,
    "c": 0.05277,
    "h": 108.4
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#51512E
secondary
#585883
accent
#64C464
background
#F8F7F6
surface
#EFEEEB
border
#CAC9C6
text
#0A0A06
muted
#7C7C7A

Preview Lab

Preview with #51512E

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

Preview Lab → · Contrast checker → · Palette generator →

#51512E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva