#7C811B#7C811B

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

Color values

HEX#7C811B
RGBrgb(124, 129, 27)
HSLhsl(63, 65%, 31%)
HSVhsv(63, 79%, 51%)
CMYKcmyk(3.9%, 0%, 79.1%, 49.4%)
CIE-LABlab(51.91, -14.58, 50.34)
CIE-LCHlch(51.91, 52.41, 106.16°)
OKLaboklab(58.04% -0.0455 0.1101)
OKLCHoklch(58.04% 0.119 112.5)
XYZxyz(16.3608, 20.0651, 4.0478)
Luminance0.2006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C811B #201B81
analogous
#81531B #7C811B #49811B
triadic
#7C811B #1B7C81 #811B7C
tetradic
#7C811B #1B8153 #201B81 #811B49
square
#7C811B #1B8153 #201B81 #811B49
split-complementary
#7C811B #1B4981 #531B81
monochromatic
#1B1C06 #4B4E10 #7C811B #ADB426 #CFD73F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C811B#FFFFFF#000000##000000
##7C811B1.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)
#8B7B01
Deuteranopia (green-blind)
#8C7D24
Tritanopia (blue-blind)
#85796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c811b;
/* rgb */ color: rgb(124, 129, 27);
/* oklch */ color: oklch(58.0% 0.119 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a561',
    500: '#7c811b',
    950: '#000000',
  },
}
SCSS
$custom: #7c811b;
$custom-light: #a5a561;
$custom-dark: #000000;
JSON
{
  "hex": "#7c811b",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 62.941,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58044,
    "c": 0.11913,
    "h": 112.5
  },
  "luminance": 0.20065
}

Semantic roles & 50–950 ramp

primary
#7C811B
secondary
#4943B5
accent
#3FE848
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C811B

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

Preview Lab → · Contrast checker → · Palette generator →

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