#7C811F#7C811F

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

Color values

HEX#7C811F
RGBrgb(124, 129, 31)
HSLhsl(63, 61%, 31%)
HSVhsv(63, 76%, 51%)
CMYKcmyk(3.9%, 0%, 76%, 49.4%)
CIE-LABlab(51.93, -14.40, 48.97)
CIE-LCHlch(51.93, 51.05, 106.38°)
OKLaboklab(58.07% -0.0447 0.108)
OKLCHoklch(58.07% 0.117 112.5)
XYZxyz(16.4103, 20.0849, 4.3084)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C811F #241F81
analogous
#81551F #7C811F #4B811F
triadic
#7C811F #1F7C81 #811F7C
tetradic
#7C811F #1F8155 #241F81 #811F4B
square
#7C811F #1F8155 #241F81 #811F4B
split-complementary
#7C811F #1F4B81 #551F81
monochromatic
#1D1E07 #4D5013 #7C811F #ABB22B #CCD347

Accessibility & contrast

On white

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

On black

5.02
#7C811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C811F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C811F#FFFFFF#000000##000000
##7C811F1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c811f;
/* rgb */ color: rgb(124, 129, 31);
/* oklch */ color: oklch(58.1% 0.117 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a563',
    500: '#7c811f',
    950: '#000000',
  },
}
SCSS
$custom: #7c811f;
$custom-light: #a5a563;
$custom-dark: #000000;
JSON
{
  "hex": "#7c811f",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 63.061,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58069,
    "c": 0.11683,
    "h": 112.5
  },
  "luminance": 0.20085
}

Semantic roles & 50–950 ramp

primary
#7C811F
secondary
#4D48B4
accent
#43E44C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C811F

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

Preview Lab → · Contrast checker → · Palette generator →

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