#7D7E1F#7D7E1F

#7D7E1F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.113 H 110.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7D7E1F
RGBrgb(125, 126, 31)
HSLhsl(61, 61%, 31%)
HSVhsv(61, 75%, 49%)
CMYKcmyk(0.8%, 0%, 75.4%, 50.6%)
CIE-LABlab(51.13, -12.32, 48.24)
CIE-LCHlch(51.13, 49.79, 104.33°)
OKLaboklab(57.45% -0.0389 0.1064)
OKLCHoklch(57.45% 0.113 110.1)
XYZxyz(16.1662, 19.3811, 4.1854)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7E1F #201F7E
analogous
#7E4F1F #7D7E1F #4D7E1F
triadic
#7D7E1F #1F7D7E #7E1F7D
tetradic
#7D7E1F #1F7E4F #201F7E #7E1F4D
square
#7D7E1F #1F7E4F #201F7E #7E1F4D
split-complementary
#7D7E1F #1F4D7E #4F1F7E
monochromatic
#1C1C07 #4C4D13 #7D7E1F #AEAF2B #D0D146

Accessibility & contrast

On white

4.31
#7D7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7D7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7E1F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7E1F#FFFFFF#000000##000000
##7D7E1F1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#86766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7e1f;
/* rgb */ color: rgb(125, 126, 31);
/* oklch */ color: oklch(57.4% 0.113 110.1);
Tailwind
colors: {
  custom: {
    50: '#a6a362',
    500: '#7d7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d7e1f;
$custom-light: #a6a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7e1f",
  "rgb": {
    "r": 125,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 60.632,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57448,
    "c": 0.11328,
    "h": 110.1
  },
  "luminance": 0.19381
}

Semantic roles & 50–950 ramp

primary
#7D7E1F
secondary
#4948B1
accent
#44E446
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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