#7C812D#7C812D

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

Color values

HEX#7C812D
RGBrgb(124, 129, 45)
HSLhsl(64, 48%, 34%)
HSVhsv(64, 65%, 51%)
CMYKcmyk(3.9%, 0%, 65.1%, 49.4%)
CIE-LABlab(52.03, -13.56, 43.37)
CIE-LCHlch(52.03, 45.44, 107.37°)
OKLaboklab(58.18% -0.0408 0.0986)
OKLCHoklch(58.18% 0.107 112.5)
XYZxyz(16.6365, 20.1754, 5.5000)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C812D #322D81
analogous
#815C2D #7C812D #52812D
triadic
#7C812D #2D7C81 #812D7C
tetradic
#7C812D #2D815C #322D81 #812D52
square
#7C812D #2D815C #322D81 #812D52
split-complementary
#7C812D #2D5281 #5C2D81
monochromatic
#25260D #50541D #7C812D #A8AE3D #C2C861

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C812D#FFFFFF#000000##000000
##7C812D1.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)
#8B7B22
Deuteranopia (green-blind)
#8B7D32
Tritanopia (blue-blind)
#847970
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c812d;
/* rgb */ color: rgb(124, 129, 45);
/* oklch */ color: oklch(58.2% 0.107 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a56a',
    500: '#7c812d',
    950: '#000000',
  },
}
SCSS
$custom: #7c812d;
$custom-light: #a4a56a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c812d",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 45
  },
  "hsl": {
    "h": 63.571,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58183,
    "c": 0.10672,
    "h": 112.5
  },
  "luminance": 0.20175
}

Semantic roles & 50–950 ramp

primary
#7C812D
secondary
#615CAE
accent
#50D858
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C812D

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

Preview Lab → · Contrast checker → · Palette generator →

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