#7F7D1D#7F7D1D

#7F7D1D is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.113 H 108.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7F7D1D
RGBrgb(127, 125, 29)
HSLhsl(59, 63%, 31%)
HSVhsv(59, 77%, 50%)
CMYKcmyk(0%, 1.6%, 77.2%, 50.2%)
CIE-LABlab(51.00, -10.95, 48.91)
CIE-LCHlch(51.00, 50.12, 102.62°)
OKLaboklab(57.38% -0.0354 0.1073)
OKLCHoklch(57.38% 0.113 108.3)
XYZxyz(16.3084, 19.2685, 4.0223)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D1D #1D1F7F
analogous
#7F4C1D #7F7D1D #507F1D
triadic
#7F7D1D #1D7F7D #7D1D7F
tetradic
#7F7D1D #1D7F4C #1D1F7F #7F1D50
square
#7F7D1D #1D7F4C #1D1F7F #7F1D50
split-complementary
#7F7D1D #1D507F #4C1D7F
monochromatic
#1B1B06 #4D4C12 #7F7D1D #B1AE28 #D4D142

Accessibility & contrast

On white

4.33
#7F7D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7F7D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D1D
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D1D#FFFFFF#000000##000000
##7F7D1D1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#887807
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#89746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d1d;
/* rgb */ color: rgb(127, 125, 29);
/* oklch */ color: oklch(57.4% 0.113 108.3);
Tailwind
colors: {
  custom: {
    50: '#a7a261',
    500: '#7f7d1d',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d1d;
$custom-light: #a7a261;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d1d",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 58.776,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57383,
    "c": 0.11301,
    "h": 108.3
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

primary
#7F7D1D
secondary
#4548B2
accent
#45E642
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7F7D1D

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

Preview Lab → · Contrast checker → · Palette generator →

#7F7D1D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva