#7C811C#7C811C

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

Color values

HEX#7C811C
RGBrgb(124, 129, 28)
HSLhsl(63, 64%, 31%)
HSVhsv(63, 78%, 51%)
CMYKcmyk(3.9%, 0%, 78.3%, 49.4%)
CIE-LABlab(51.92, -14.54, 50.01)
CIE-LCHlch(51.92, 52.08, 106.21°)
OKLaboklab(58.05% -0.0453 0.1096)
OKLCHoklch(58.05% 0.119 112.5)
XYZxyz(16.3726, 20.0698, 4.1098)
Luminance0.2007 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C811C #211C81
analogous
#81531C #7C811C #49811C
triadic
#7C811C #1C7C81 #811C7C
tetradic
#7C811C #1C8153 #211C81 #811C49
square
#7C811C #1C8153 #211C81 #811C49
split-complementary
#7C811C #1C4981 #531C81
monochromatic
#1B1C06 #4C4F11 #7C811C #ACB327 #CFD642

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C811C#FFFFFF#000000##000000
##7C811C1.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)
#8B7B03
Deuteranopia (green-blind)
#8C7D25
Tritanopia (blue-blind)
#85796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c811c;
/* rgb */ color: rgb(124, 129, 28);
/* oklch */ color: oklch(58.1% 0.119 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a561',
    500: '#7c811c',
    950: '#000000',
  },
}
SCSS
$custom: #7c811c;
$custom-light: #a5a561;
$custom-dark: #000000;
JSON
{
  "hex": "#7c811c",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 28
  },
  "hsl": {
    "h": 62.97,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5805,
    "c": 0.11858,
    "h": 112.5
  },
  "luminance": 0.20069
}

Semantic roles & 50–950 ramp

primary
#7C811C
secondary
#4A44B4
accent
#40E749
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C811C

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

Preview Lab → · Contrast checker → · Palette generator →

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