#7E7D1A#7E7D1A

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

Color values

HEX#7E7D1A
RGBrgb(126, 125, 26)
HSLhsl(59, 66%, 30%)
HSVhsv(59, 79%, 49%)
CMYKcmyk(0%, 0.8%, 79.4%, 50.6%)
CIE-LABlab(50.89, -11.55, 49.81)
CIE-LCHlch(50.89, 51.13, 103.05°)
OKLaboklab(57.27% -0.0373 0.1087)
OKLCHoklch(57.27% 0.115 108.9)
XYZxyz(16.1249, 19.1779, 3.8294)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D1A #1A1B7E
analogous
#7E4B1A #7E7D1A #4D7E1A
triadic
#7E7D1A #1A7E7D #7D1A7E
tetradic
#7E7D1A #1A7E4B #1A1B7E #7E1A4D
square
#7E7D1A #1A7E4B #1A1B7E #7E1A4D
split-complementary
#7E7D1A #1A4D7E #4B1A7E
monochromatic
#191905 #4B4B10 #7E7D1A #B1AF24 #D7D53C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7D1A#FFFFFF#000000##000000
##7E7D1A1.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)
#887801
Deuteranopia (green-blind)
#897B22
Tritanopia (blue-blind)
#88746B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7d1a;
/* rgb */ color: rgb(126, 125, 26);
/* oklch */ color: oklch(57.3% 0.115 108.9);
Tailwind
colors: {
  custom: {
    50: '#a7a260',
    500: '#7e7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d1a;
$custom-light: #a7a260;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d1a",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 59.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57272,
    "c": 0.11491,
    "h": 108.9
  },
  "luminance": 0.19177
}

Semantic roles & 50–950 ramp

primary
#7E7D1A
secondary
#4243B2
accent
#41E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7E7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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