#7D7C1F#7D7C1F

#7D7C1F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.111 H 108.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7D7C1F
RGBrgb(125, 124, 31)
HSLhsl(59, 60%, 31%)
HSVhsv(59, 75%, 49%)
CMYKcmyk(0%, 0.8%, 75.2%, 51%)
CIE-LABlab(50.54, -11.24, 47.68)
CIE-LCHlch(50.54, 48.99, 103.26°)
OKLaboklab(56.98% -0.0359 0.1052)
OKLCHoklch(56.98% 0.111 108.8)
XYZxyz(15.9130, 18.8747, 4.1010)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7C1F #1F207D
analogous
#7D4D1F #7D7C1F #4F7D1F
triadic
#7D7C1F #1F7D7C #7C1F7D
tetradic
#7D7C1F #1F7D4D #1F207D #7D1F4F
square
#7D7C1F #1F7D4D #1F207D #7D1F4F
split-complementary
#7D7C1F #1F4F7D #4D1F7D
monochromatic
#1B1B07 #4C4B13 #7D7C1F #AEAD2B #D1CF45

Accessibility & contrast

On white

4.40
#7D7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7D7C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7C1F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7C1F#FFFFFF#000000##000000
##7D7C1F1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#86746A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d7c1f;
/* rgb */ color: rgb(125, 124, 31);
/* oklch */ color: oklch(57.0% 0.111 108.8);
Tailwind
colors: {
  custom: {
    50: '#a6a162',
    500: '#7d7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d7c1f;
$custom-light: #a6a162;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7c1f",
  "rgb": {
    "r": 125,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 59.362,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56977,
    "c": 0.11114,
    "h": 108.8
  },
  "luminance": 0.18874
}

Semantic roles & 50–950 ramp

primary
#7D7C1F
secondary
#4849B0
accent
#46E344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7D7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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