#7E761F#7E761F

#7E761F is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.7% C 0.105 H 104.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7E761F
RGBrgb(126, 118, 31)
HSLhsl(55, 61%, 31%)
HSVhsv(55, 75%, 49%)
CMYKcmyk(0%, 6.3%, 75.4%, 50.6%)
CIE-LABlab(48.87, -7.46, 46.12)
CIE-LCHlch(48.87, 46.72, 99.18°)
OKLaboklab(55.67% -0.0253 0.1019)
OKLCHoklch(55.67% 0.105 104)
XYZxyz(15.3306, 17.4920, 3.8648)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E761F #1F277E
analogous
#7E461F #7E761F #567E1F
triadic
#7E761F #1F7E76 #761F7E
tetradic
#7E761F #1F7E46 #1F277E #7E1F56
square
#7E761F #1F7E46 #1F277E #7E1F56
split-complementary
#7E761F #1F567E #461F7E
monochromatic
#1C1A07 #4D4813 #7E761F #AFA42B #D1C646

Accessibility & contrast

On white

4.67
#7E761F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7E761F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E761F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E761F#FFFFFF#000000##FFFFFF
##7E761F1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720F
Deuteranopia (green-blind)
#847625
Tritanopia (blue-blind)
#886D65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e761f;
/* rgb */ color: rgb(126, 118, 31);
/* oklch */ color: oklch(55.7% 0.105 104.0);
Tailwind
colors: {
  custom: {
    50: '#a69d61',
    500: '#7e761f',
    950: '#000000',
  },
}
SCSS
$custom: #7e761f;
$custom-light: #a69d61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e761f",
  "rgb": {
    "r": 126,
    "g": 118,
    "b": 31
  },
  "hsl": {
    "h": 54.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55671,
    "c": 0.10495,
    "h": 104
  },
  "luminance": 0.17491
}

Semantic roles & 50–950 ramp

primary
#7E761F
secondary
#4851B1
accent
#52E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E761F

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

Preview Lab → · Contrast checker → · Palette generator →

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