#7C812A#7C812A

#7C812A is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.109 H 112.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7C812A
RGBrgb(124, 129, 42)
HSLhsl(63, 51%, 34%)
HSVhsv(63, 67%, 51%)
CMYKcmyk(3.9%, 0%, 67.4%, 49.4%)
CIE-LABlab(52.01, -13.77, 44.67)
CIE-LCHlch(52.01, 46.74, 107.13°)
OKLaboklab(58.16% -0.0418 0.1008)
OKLCHoklch(58.16% 0.109 112.5)
XYZxyz(16.5808, 20.1531, 5.2065)
Luminance0.2015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C812A #2F2A81
analogous
#815A2A #7C812A #50812A
triadic
#7C812A #2A7C81 #812A7C
tetradic
#7C812A #2A815A #2F2A81 #812A50
square
#7C812A #2A815A #2F2A81 #812A50
split-complementary
#7C812A #2A5081 #5A2A81
monochromatic
#23250C #50531B #7C812A #A8AF39 #C3CA5C

Accessibility & contrast

On white

4.17
#7C812A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#7C812A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C812A
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C812A#FFFFFF#000000##000000
##7C812A1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1E
Deuteranopia (green-blind)
#8B7D30
Tritanopia (blue-blind)
#84796F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c812a;
/* rgb */ color: rgb(124, 129, 42);
/* oklch */ color: oklch(58.2% 0.109 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a569',
    500: '#7c812a',
    950: '#000000',
  },
}
SCSS
$custom: #7c812a;
$custom-light: #a4a569;
$custom-dark: #000000;
JSON
{
  "hex": "#7c812a",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 42
  },
  "hsl": {
    "h": 63.448,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58155,
    "c": 0.10914,
    "h": 112.5
  },
  "luminance": 0.20153
}

Semantic roles & 50–950 ramp

primary
#7C812A
secondary
#5C57AF
accent
#4DDA56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C812A

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

Preview Lab → · Contrast checker → · Palette generator →

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