#7E7D2A#7E7D2A

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

Color values

HEX#7E7D2A
RGBrgb(126, 125, 42)
HSLhsl(59, 50%, 33%)
HSVhsv(59, 67%, 49%)
CMYKcmyk(0%, 0.8%, 66.7%, 50.6%)
CIE-LABlab(51.00, -10.69, 43.67)
CIE-LCHlch(51.00, 44.96, 103.76°)
OKLaboklab(57.39% -0.0332 0.0987)
OKLCHoklch(57.39% 0.104 108.6)
XYZxyz(16.3563, 19.2705, 5.0480)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D2A #2A2B7E
analogous
#7E532A #7E7D2A #557E2A
triadic
#7E7D2A #2A7E7D #7D2A7E
tetradic
#7E7D2A #2A7E53 #2A2B7E #7E2A55
square
#7E7D2A #2A7E53 #2A2B7E #7E2A55
split-complementary
#7E7D2A #2A557E #532A7E
monochromatic
#22220B #504F1B #7E7D2A #ACAB39 #C8C75A

Accessibility & contrast

On white

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

On black

4.85
#7E7D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D2A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D2A#FFFFFF#000000##000000
##7E7D2A1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781F
Deuteranopia (green-blind)
#887B2F
Tritanopia (blue-blind)
#87756C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d2a;
/* rgb */ color: rgb(126, 125, 42);
/* oklch */ color: oklch(57.4% 0.104 108.6);
Tailwind
colors: {
  custom: {
    50: '#a6a268',
    500: '#7e7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d2a;
$custom-light: #a6a268;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d2a",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 59.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57392,
    "c": 0.10413,
    "h": 108.6
  },
  "luminance": 0.1927
}

Semantic roles & 50–950 ramp

primary
#7E7D2A
secondary
#5657AE
accent
#50DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #7E7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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