#7C7D1F#7C7D1F

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

Color values

HEX#7C7D1F
RGBrgb(124, 125, 31)
HSLhsl(61, 60%, 31%)
HSVhsv(61, 75%, 49%)
CMYKcmyk(0.8%, 0%, 75.2%, 51%)
CIE-LABlab(50.75, -12.24, 47.85)
CIE-LCHlch(50.75, 49.39, 104.35°)
OKLaboklab(57.12% -0.0386 0.1056)
OKLCHoklch(57.12% 0.112 110.1)
XYZxyz(15.8937, 19.0517, 4.1362)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7D1F #201F7D
analogous
#7D4F1F #7C7D1F #4D7D1F
triadic
#7C7D1F #1F7C7D #7D1F7C
tetradic
#7C7D1F #1F7D4F #201F7D #7D1F4D
square
#7C7D1F #1F7D4F #201F7D #7D1F4D
split-complementary
#7C7D1F #1F4D7D #4F1F7D
monochromatic
#1B1B07 #4B4C13 #7C7D1F #ADAE2B #CFD145

Accessibility & contrast

On white

4.37
#7C7D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7C7D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7D1F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7D1F#FFFFFF#000000##000000
##7C7D1F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c7d1f;
/* rgb */ color: rgb(124, 125, 31);
/* oklch */ color: oklch(57.1% 0.112 110.1);
Tailwind
colors: {
  custom: {
    50: '#a5a262',
    500: '#7c7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c7d1f;
$custom-light: #a5a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7d1f",
  "rgb": {
    "r": 124,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 60.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57121,
    "c": 0.11243,
    "h": 110.1
  },
  "luminance": 0.19051
}

Semantic roles & 50–950 ramp

primary
#7C7D1F
secondary
#4948B0
accent
#44E346
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7C7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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