#7D8420#7D8420

#7D8420 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.119 H 113.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7D8420
RGBrgb(125, 132, 32)
HSLhsl(64, 61%, 32%)
HSVhsv(64, 76%, 52%)
CMYKcmyk(5.3%, 0%, 75.8%, 48.2%)
CIE-LABlab(52.91, -15.49, 49.57)
CIE-LCHlch(52.91, 51.93, 107.36°)
OKLaboklab(58.88% -0.0477 0.1094)
OKLCHoklch(58.88% 0.119 113.6)
XYZxyz(16.9699, 20.9671, 4.5193)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8420 #272084
analogous
#845920 #7D8420 #4B8420
triadic
#7D8420 #207D84 #84207D
tetradic
#7D8420 #208459 #272084 #84204B
square
#7D8420 #208459 #272084 #84204B
split-complementary
#7D8420 #204B84 #592084
monochromatic
#202108 #4E5314 #7D8420 #ACB52C #CAD34B

Accessibility & contrast

On white

4.04
#7D8420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7D8420 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8420
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8420#FFFFFF#000000##000000
##7D84201.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0B
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#867C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7d8420;
/* rgb */ color: rgb(125, 132, 32);
/* oklch */ color: oklch(58.9% 0.119 113.6);
Tailwind
colors: {
  custom: {
    50: '#a6a764',
    500: '#7d8420',
    950: '#000000',
  },
}
SCSS
$custom: #7d8420;
$custom-light: #a6a764;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8420",
  "rgb": {
    "r": 125,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 64.2,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58877,
    "c": 0.11931,
    "h": 113.6
  },
  "luminance": 0.20967
}

Semantic roles & 50–950 ramp

primary
#7D8420
secondary
#514AB6
accent
#44E44F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8420

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

Preview Lab → · Contrast checker → · Palette generator →

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