#7E7C1A#7E7C1A

#7E7C1A is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.114 H 108.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7E7C1A
RGBrgb(126, 124, 26)
HSLhsl(59, 66%, 30%)
HSVhsv(59, 79%, 49%)
CMYKcmyk(0%, 1.6%, 79.4%, 50.6%)
CIE-LABlab(50.60, -11.00, 49.54)
CIE-LCHlch(50.60, 50.75, 102.52°)
OKLaboklab(57.04% -0.0358 0.1081)
OKLCHoklch(57.04% 0.114 108.3)
XYZxyz(15.9989, 18.9260, 3.7874)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C1A #1A1C7E
analogous
#7E4A1A #7E7C1A #4E7E1A
triadic
#7E7C1A #1A7E7C #7C1A7E
tetradic
#7E7C1A #1A7E4A #1A1C7E #7E1A4E
square
#7E7C1A #1A7E4A #1A1C7E #7E1A4E
split-complementary
#7E7C1A #1A4E7E #4A1A7E
monochromatic
#191905 #4B4A10 #7E7C1A #B1AE24 #D7D43C

Accessibility & contrast

On white

4.39
#7E7C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#7E7C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C1A
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C1A#FFFFFF#000000##000000
##7E7C1A1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#887A22
Tritanopia (blue-blind)
#88736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c1a;
/* rgb */ color: rgb(126, 124, 26);
/* oklch */ color: oklch(57.0% 0.114 108.3);
Tailwind
colors: {
  custom: {
    50: '#a7a160',
    500: '#7e7c1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c1a;
$custom-light: #a7a160;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c1a",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 58.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57037,
    "c": 0.11388,
    "h": 108.3
  },
  "luminance": 0.18926
}

Semantic roles & 50–950 ramp

primary
#7E7C1A
secondary
#4244B2
accent
#42E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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