#7E7D2C#7E7D2C

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

Color values

HEX#7E7D2C
RGBrgb(126, 125, 44)
HSLhsl(59, 48%, 33%)
HSVhsv(59, 65%, 49%)
CMYKcmyk(0%, 0.8%, 65.1%, 50.6%)
CIE-LABlab(51.02, -10.56, 42.80)
CIE-LCHlch(51.02, 44.08, 103.86°)
OKLaboklab(57.41% -0.0326 0.0972)
OKLCHoklch(57.41% 0.103 108.6)
XYZxyz(16.3930, 19.2852, 5.2413)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D2C #2C2D7E
analogous
#7E542C #7E7D2C #567E2C
triadic
#7E7D2C #2C7E7D #7D2C7E
tetradic
#7E7D2C #2C7E54 #2C2D7E #7E2C56
square
#7E7D2C #2C7E54 #2C2D7E #7E2C56
split-complementary
#7E7D2C #2C567E #542C7E
monochromatic
#23230C #51501C #7E7D2C #ABAA3C #C7C55E

Accessibility & contrast

On white

4.32
#7E7D2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7D2C#FFFFFF#000000##000000
##7E7D2C1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7d2c;
/* rgb */ color: rgb(126, 125, 44);
/* oklch */ color: oklch(57.4% 0.102 108.6);
Tailwind
colors: {
  custom: {
    50: '#a6a269',
    500: '#7e7d2c',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d2c;
$custom-light: #a6a269;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d2c",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 59.268,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57411,
    "c": 0.1025,
    "h": 108.6
  },
  "luminance": 0.19285
}

Semantic roles & 50–950 ramp

primary
#7E7D2C
secondary
#595AAD
accent
#52D850
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F07
muted
#7F7E7A

Preview Lab

Preview with #7E7D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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