#51501C#51501C

#51501C is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.0% C 0.072 H 108.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#51501C
RGBrgb(81, 80, 28)
HSLhsl(59, 49%, 21%)
HSVhsv(59, 65%, 32%)
CMYKcmyk(0%, 1.2%, 65.4%, 68.2%)
CIE-LABlab(33.07, -7.35, 29.98)
CIE-LCHlch(33.07, 30.87, 103.77°)
OKLaboklab(42.05% -0.0225 0.0687)
OKLCHoklch(42.05% 0.072 108.1)
XYZxyz(6.4718, 7.5707, 2.2188)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51501C #1C1D51
analogous
#51361C #51501C #38511C
triadic
#51501C #1C5150 #501C51
tetradic
#51501C #1C5136 #1C1D51 #511C38
square
#51501C #1C5136 #1C1D51 #511C38
split-complementary
#51501C #1C3851 #361C51
monochromatic
#171608 #24230C #51501C #7E7D2C #ACAA3B

Accessibility & contrast

On white

8.35
#51501C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#51501C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51501C
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51501C#FFFFFF#000000##FFFFFF
##51501C1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D16
Deuteranopia (green-blind)
#584F1F
Tritanopia (blue-blind)
#574B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51501c;
/* rgb */ color: rgb(81, 80, 28);
/* oklch */ color: oklch(42.0% 0.072 108.1);
Tailwind
colors: {
  custom: {
    50: '#84805b',
    500: '#51501c',
    950: '#000000',
  },
}
SCSS
$custom: #51501c;
$custom-light: #84805b;
$custom-dark: #000000;
JSON
{
  "hex": "#51501c",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 28
  },
  "hsl": {
    "h": 58.868,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.0723,
    "h": 108.1
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#51501C
secondary
#424487
accent
#52D850
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #51501C

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

Preview Lab → · Contrast checker → · Palette generator →

#51501C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva