#7E7F1D#7E7F1D

#7E7F1D is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.115 H 110.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E7F1D
RGBrgb(126, 127, 29)
HSLhsl(61, 63%, 31%)
HSVhsv(61, 77%, 50%)
CMYKcmyk(0.8%, 0%, 77.2%, 50.2%)
CIE-LABlab(51.50, -12.50, 49.34)
CIE-LCHlch(51.50, 50.90, 104.22°)
OKLaboklab(57.76% -0.0397 0.1083)
OKLCHoklch(57.76% 0.115 110.1)
XYZxyz(16.4159, 19.7035, 4.1006)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7F1D #1E1D7F
analogous
#7F4F1D #7E7F1D #4D7F1D
triadic
#7E7F1D #1D7E7F #7F1D7E
tetradic
#7E7F1D #1D7F4F #1E1D7F #7F1D4D
square
#7E7F1D #1D7F4F #1E1D7F #7F1D4D
split-complementary
#7E7F1D #1D4D7F #4F1D7F
monochromatic
#1B1B06 #4D4D12 #7E7F1D #AFB128 #D2D442

Accessibility & contrast

On white

4.25
#7E7F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7E7F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7F1D
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7F1D#FFFFFF#000000##000000
##7E7F1D1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7906
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#87776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e7f1d;
/* rgb */ color: rgb(126, 127, 29);
/* oklch */ color: oklch(57.8% 0.115 110.1);
Tailwind
colors: {
  custom: {
    50: '#a7a362',
    500: '#7e7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #7e7f1d;
$custom-light: #a7a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7f1d",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 60.612,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57761,
    "c": 0.11532,
    "h": 110.1
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#7E7F1D
secondary
#4745B2
accent
#42E644
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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