#7E7D1E#7E7D1E

#7E7D1E is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.3% C 0.113 H 108.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E7D1E
RGBrgb(126, 125, 30)
HSLhsl(59, 62%, 31%)
HSVhsv(59, 76%, 49%)
CMYKcmyk(0%, 0.8%, 76.2%, 50.6%)
CIE-LABlab(50.92, -11.37, 48.44)
CIE-LCHlch(50.92, 49.76, 103.21°)
OKLaboklab(57.3% -0.0364 0.1066)
OKLCHoklch(57.3% 0.113 108.9)
XYZxyz(16.1727, 19.1971, 4.0815)
Luminance0.1920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D1E #1E1F7E
analogous
#7E4D1E #7E7D1E #4F7E1E
triadic
#7E7D1E #1E7E7D #7D1E7E
tetradic
#7E7D1E #1E7E4D #1E1F7E #7E1E4F
square
#7E7D1E #1E7E4D #1E1F7E #7E1E4F
split-complementary
#7E7D1E #1E4F7E #4D1E7E
monochromatic
#1B1B06 #4D4C12 #7E7D1E #AFAE2A #D2D144

Accessibility & contrast

On white

4.34
#7E7D1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7E7D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D1E
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D1E#FFFFFF#000000##000000
##7E7D1E1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#87756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d1e;
/* rgb */ color: rgb(126, 125, 30);
/* oklch */ color: oklch(57.3% 0.113 108.9);
Tailwind
colors: {
  custom: {
    50: '#a7a262',
    500: '#7e7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d1e;
$custom-light: #a7a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d1e",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 59.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57297,
    "c": 0.11261,
    "h": 108.9
  },
  "luminance": 0.19197
}

Semantic roles & 50–950 ramp

primary
#7E7D1E
secondary
#4748B1
accent
#45E543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7E7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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