#7E7D2B#7E7D2B

#7E7D2B is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.103 H 108.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7E7D2B
RGBrgb(126, 125, 43)
HSLhsl(59, 49%, 33%)
HSVhsv(59, 66%, 49%)
CMYKcmyk(0%, 0.8%, 65.9%, 50.6%)
CIE-LABlab(51.01, -10.62, 43.24)
CIE-LCHlch(51.01, 44.52, 103.81°)
OKLaboklab(57.4% -0.0329 0.0979)
OKLCHoklch(57.4% 0.103 108.6)
XYZxyz(16.3744, 19.2777, 5.1435)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D2B #2B2C7E
analogous
#7E532B #7E7D2B #557E2B
triadic
#7E7D2B #2B7E7D #7D2B7E
tetradic
#7E7D2B #2B7E53 #2B2C7E #7E2B55
square
#7E7D2B #2B7E53 #2B2C7E #7E2B55
split-complementary
#7E7D2B #2B557E #532B7E
monochromatic
#23220C #50501B #7E7D2B #ACAA3B #C7C65C

Accessibility & contrast

On white

4.33
#7E7D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#7E7D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D2B
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D2B#FFFFFF#000000##000000
##7E7D2B1.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877820
Deuteranopia (green-blind)
#887B30
Tritanopia (blue-blind)
#87756C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d2b;
/* rgb */ color: rgb(126, 125, 43);
/* oklch */ color: oklch(57.4% 0.103 108.6);
Tailwind
colors: {
  custom: {
    50: '#a6a269',
    500: '#7e7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d2b;
$custom-light: #a6a269;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d2b",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 59.277,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57402,
    "c": 0.10333,
    "h": 108.6
  },
  "luminance": 0.19277
}

Semantic roles & 50–950 ramp

primary
#7E7D2B
secondary
#5859AD
accent
#51D94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #7E7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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