#7D7A1F#7D7A1F

#7D7A1F is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.109 H 107.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7D7A1F
RGBrgb(125, 122, 31)
HSLhsl(58, 60%, 31%)
HSVhsv(58, 75%, 49%)
CMYKcmyk(0%, 2.4%, 75.2%, 51%)
CIE-LABlab(49.95, -10.14, 47.12)
CIE-LCHlch(49.95, 48.20, 102.14°)
OKLaboklab(56.51% -0.0328 0.104)
OKLCHoklch(56.51% 0.109 107.5)
XYZxyz(15.6649, 18.3785, 4.0183)
Luminance0.1838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7A1F #1F227D
analogous
#7D4B1F #7D7A1F #517D1F
triadic
#7D7A1F #1F7D7A #7A1F7D
tetradic
#7D7A1F #1F7D4B #1F227D #7D1F51
square
#7D7A1F #1F7D4B #1F227D #7D1F51
split-complementary
#7D7A1F #1F517D #4B1F7D
monochromatic
#1B1A07 #4C4A13 #7D7A1F #AEAA2B #D1CD45

Accessibility & contrast

On white

4.49
#7D7A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7D7A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7A1F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7A1F#FFFFFF#000000##000000
##7D7A1F1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#867268
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7d7a1f;
/* rgb */ color: rgb(125, 122, 31);
/* oklch */ color: oklch(56.5% 0.109 107.5);
Tailwind
colors: {
  custom: {
    50: '#a6a062',
    500: '#7d7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d7a1f;
$custom-light: #a6a062;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7a1f",
  "rgb": {
    "r": 125,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 58.085,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56507,
    "c": 0.10907,
    "h": 107.5
  },
  "luminance": 0.18378
}

Semantic roles & 50–950 ramp

primary
#7D7A1F
secondary
#484BB0
accent
#49E344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7D7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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