#7C812E#7C812E

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

Color values

HEX#7C812E
RGBrgb(124, 129, 46)
HSLhsl(64, 47%, 34%)
HSVhsv(64, 64%, 51%)
CMYKcmyk(3.9%, 0%, 64.3%, 49.4%)
CIE-LABlab(52.04, -13.49, 42.93)
CIE-LCHlch(52.04, 45.00, 107.45°)
OKLaboklab(58.19% -0.0405 0.0978)
OKLCHoklch(58.19% 0.106 112.5)
XYZxyz(16.6560, 20.1832, 5.6026)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C812E #332E81
analogous
#815D2E #7C812E #53812E
triadic
#7C812E #2E7C81 #812E7C
tetradic
#7C812E #2E815D #332E81 #812E53
square
#7C812E #2E815D #332E81 #812E53
split-complementary
#7C812E #2E5381 #5D2E81
monochromatic
#25270E #51541E #7C812E #A7AE3E #C1C762

Accessibility & contrast

On white

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

On black

5.04
#7C812E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C812E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C812E#FFFFFF#000000##000000
##7C812E1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B24
Deuteranopia (green-blind)
#8B7D33
Tritanopia (blue-blind)
#847970
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c812e;
/* rgb */ color: rgb(124, 129, 46);
/* oklch */ color: oklch(58.2% 0.106 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a56b',
    500: '#7c812e',
    950: '#000000',
  },
}
SCSS
$custom: #7c812e;
$custom-light: #a4a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c812e",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 63.614,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58193,
    "c": 0.10588,
    "h": 112.5
  },
  "luminance": 0.20183
}

Semantic roles & 50–950 ramp

primary
#7C812E
secondary
#625DAE
accent
#51D759
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C812E

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

Preview Lab → · Contrast checker → · Palette generator →

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