#7E781A#7E781A

#7E781A is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.110 H 105.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E781A
RGBrgb(126, 120, 26)
HSLhsl(56, 66%, 30%)
HSVhsv(56, 79%, 49%)
CMYKcmyk(0%, 4.8%, 79.4%, 50.6%)
CIE-LABlab(49.43, -8.80, 48.47)
CIE-LCHlch(49.43, 49.27, 100.29°)
OKLaboklab(56.1% -0.0296 0.1058)
OKLCHoklch(56.1% 0.11 105.6)
XYZxyz(15.5078, 17.9437, 3.6237)
Luminance0.1794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E781A #1A207E
analogous
#7E461A #7E781A #527E1A
triadic
#7E781A #1A7E78 #781A7E
tetradic
#7E781A #1A7E46 #1A207E #7E1A52
square
#7E781A #1A7E46 #1A207E #7E1A52
split-complementary
#7E781A #1A527E #461A7E
monochromatic
#191805 #4B4810 #7E781A #B1A824 #D7CD3C

Accessibility & contrast

On white

4.58
#7E781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7E781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E781A
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E781A#FFFFFF#000000##000000
##7E781A1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#837303
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e781a;
/* rgb */ color: rgb(126, 120, 26);
/* oklch */ color: oklch(56.1% 0.110 105.6);
Tailwind
colors: {
  custom: {
    50: '#a79e5f',
    500: '#7e781a',
    950: '#000000',
  },
}
SCSS
$custom: #7e781a;
$custom-light: #a79e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e781a",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 56.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56102,
    "c": 0.1099,
    "h": 105.6
  },
  "luminance": 0.17943
}

Semantic roles & 50–950 ramp

primary
#7E781A
secondary
#4248B2
accent
#49E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E781A

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

Preview Lab → · Contrast checker → · Palette generator →

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