#7C812C#7C812C

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

Color values

HEX#7C812C
RGBrgb(124, 129, 44)
HSLhsl(64, 49%, 34%)
HSVhsv(64, 66%, 51%)
CMYKcmyk(3.9%, 0%, 65.9%, 49.4%)
CIE-LABlab(52.03, -13.63, 43.81)
CIE-LCHlch(52.03, 45.88, 107.29°)
OKLaboklab(58.17% -0.0412 0.0993)
OKLCHoklch(58.17% 0.108 112.5)
XYZxyz(16.6175, 20.1678, 5.3998)
Luminance0.2017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C812C #312C81
analogous
#815C2C #7C812C #52812C
triadic
#7C812C #2C7C81 #812C7C
tetradic
#7C812C #2C815C #312C81 #812C52
square
#7C812C #2C815C #312C81 #812C52
split-complementary
#7C812C #2C5281 #5C2C81
monochromatic
#24260D #50531C #7C812C #A8AF3C #C2C85F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C812C#FFFFFF#000000##000000
##7C812C1.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)
#8B7B21
Deuteranopia (green-blind)
#8B7D32
Tritanopia (blue-blind)
#84796F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c812c;
/* rgb */ color: rgb(124, 129, 44);
/* oklch */ color: oklch(58.2% 0.108 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a56a',
    500: '#7c812c',
    950: '#000000',
  },
}
SCSS
$custom: #7c812c;
$custom-light: #a4a56a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c812c",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 44
  },
  "hsl": {
    "h": 63.529,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58174,
    "c": 0.10754,
    "h": 112.5
  },
  "luminance": 0.20167
}

Semantic roles & 50–950 ramp

primary
#7C812C
secondary
#5F5AAF
accent
#4FD957
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C812C

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

Preview Lab → · Contrast checker → · Palette generator →

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