#7A7D1F#7A7D1F

#7A7D1F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.113 H 111.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7A7D1F
RGBrgb(122, 125, 31)
HSLhsl(62, 60%, 31%)
HSVhsv(62, 75%, 49%)
CMYKcmyk(2.4%, 0%, 75.2%, 51%)
CIE-LABlab(50.57, -13.16, 47.62)
CIE-LCHlch(50.57, 49.41, 105.45°)
OKLaboklab(56.94% -0.0411 0.1052)
OKLCHoklch(56.94% 0.113 111.3)
XYZxyz(15.6075, 18.9041, 4.1228)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7D1F #221F7D
analogous
#7D511F #7A7D1F #4B7D1F
triadic
#7A7D1F #1F7A7D #7D1F7A
tetradic
#7A7D1F #1F7D51 #221F7D #7D1F4B
square
#7A7D1F #1F7D51 #221F7D #7D1F4B
split-complementary
#7A7D1F #1F4B7D #511F7D
monochromatic
#1A1B07 #4A4C13 #7A7D1F #AAAE2B #CDD145

Accessibility & contrast

On white

4.39
#7A7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7A7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7D1F
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7D1F#FFFFFF#000000##000000
##7A7D1F1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770C
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#83756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7a7d1f;
/* rgb */ color: rgb(122, 125, 31);
/* oklch */ color: oklch(56.9% 0.113 111.3);
Tailwind
colors: {
  custom: {
    50: '#a3a262',
    500: '#7a7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7a7d1f;
$custom-light: #a3a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7d1f",
  "rgb": {
    "r": 122,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 61.915,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5694,
    "c": 0.11292,
    "h": 111.3
  },
  "luminance": 0.18904
}

Semantic roles & 50–950 ramp

primary
#7A7D1F
secondary
#4B48B0
accent
#44E349
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #7A7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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