#7D7D1F#7D7D1F

#7D7D1F is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.112 H 109.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7D7D1F
RGBrgb(125, 125, 31)
HSLhsl(60, 60%, 31%)
HSVhsv(60, 75%, 49%)
CMYKcmyk(0%, 0%, 75.2%, 51%)
CIE-LABlab(50.84, -11.78, 47.96)
CIE-LCHlch(50.84, 49.39, 103.80°)
OKLaboklab(57.21% -0.0374 0.1058)
OKLCHoklch(57.21% 0.112 109.5)
XYZxyz(16.0390, 19.1266, 4.1430)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7D1F #1F1F7D
analogous
#7D4E1F #7D7D1F #4E7D1F
triadic
#7D7D1F #1F7D7D #7D1F7D
tetradic
#7D7D1F #1F7D4E #1F1F7D #7D1F4E
square
#7D7D1F #1F7D4E #1F1F7D #7D1F4E
split-complementary
#7D7D1F #1F4E7D #4E1F7D
monochromatic
#1B1B07 #4C4C13 #7D7D1F #AEAE2B #D1D145

Accessibility & contrast

On white

4.35
#7D7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7D7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7D1F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7D1F#FFFFFF#000000##000000
##7D7D1F1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88770C
Deuteranopia (green-blind)
#897A26
Tritanopia (blue-blind)
#86756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7d7d1f;
/* rgb */ color: rgb(125, 125, 31);
/* oklch */ color: oklch(57.2% 0.112 109.5);
Tailwind
colors: {
  custom: {
    50: '#a6a262',
    500: '#7d7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d7d1f;
$custom-light: #a6a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7d1f",
  "rgb": {
    "r": 125,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57212,
    "c": 0.11221,
    "h": 109.5
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#7D7D1F
secondary
#4848B0
accent
#44E344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7D7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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