#7C811A#7C811A

#7C811A is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.0% C 0.120 H 112.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7C811A
RGBrgb(124, 129, 26)
HSLhsl(63, 66%, 30%)
HSVhsv(63, 80%, 51%)
CMYKcmyk(3.9%, 0%, 79.8%, 49.4%)
CIE-LABlab(51.91, -14.62, 50.66)
CIE-LCHlch(51.91, 52.73, 106.10°)
OKLaboklab(58.04% -0.0457 0.1106)
OKLCHoklch(58.04% 0.12 112.5)
XYZxyz(16.3494, 20.0606, 3.9879)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C811A #1F1A81
analogous
#81531A #7C811A #48811A
triadic
#7C811A #1A7C81 #811A7C
tetradic
#7C811A #1A8153 #1F1A81 #811A48
square
#7C811A #1A8153 #1F1A81 #811A48
split-complementary
#7C811A #1A4881 #531A81
monochromatic
#1A1B05 #4B4E10 #7C811A #ADB424 #D0D83D

Accessibility & contrast

On white

4.19
#7C811A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7C811A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C811A
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C811A#FFFFFF#000000##000000
##7C811A1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B00
Deuteranopia (green-blind)
#8C7D23
Tritanopia (blue-blind)
#85796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c811a;
/* rgb */ color: rgb(124, 129, 26);
/* oklch */ color: oklch(58.0% 0.120 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a560',
    500: '#7c811a',
    950: '#000000',
  },
}
SCSS
$custom: #7c811a;
$custom-light: #a5a560;
$custom-dark: #000000;
JSON
{
  "hex": "#7c811a",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 26
  },
  "hsl": {
    "h": 62.913,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58038,
    "c": 0.11967,
    "h": 112.5
  },
  "luminance": 0.2006
}

Semantic roles & 50–950 ramp

primary
#7C811A
secondary
#4842B5
accent
#3EE947
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C811A

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

Preview Lab → · Contrast checker → · Palette generator →

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