#7D7020#7D7020

#7D7020 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.099 H 99.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7D7020
RGBrgb(125, 112, 32)
HSLhsl(52, 59%, 31%)
HSVhsv(52, 74%, 49%)
CMYKcmyk(0%, 10.4%, 74.4%, 51%)
CIE-LABlab(47.04, -4.50, 43.91)
CIE-LCHlch(47.04, 44.14, 95.85°)
OKLaboklab(54.2% -0.0168 0.0974)
OKLCHoklch(54.2% 0.099 99.8)
XYZxyz(14.5130, 16.0533, 3.7004)
Luminance0.1605 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7020 #202D7D
analogous
#7D4120 #7D7020 #5B7D20
triadic
#7D7020 #207D70 #70207D
tetradic
#7D7020 #207D41 #202D7D #7D205B
square
#7D7020 #207D41 #202D7D #7D205B
split-complementary
#7D7020 #205B7D #41207D
monochromatic
#1C1907 #4C4414 #7D7020 #AE9C2C #D0BD47

Accessibility & contrast

On white

4.99
#7D7020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7D7020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D7020
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7020#FFFFFF#000000##FFFFFF
##7D70201.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D13
Deuteranopia (green-blind)
#7F7225
Tritanopia (blue-blind)
#876760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d7020;
/* rgb */ color: rgb(125, 112, 32);
/* oklch */ color: oklch(54.2% 0.099 99.8);
Tailwind
colors: {
  custom: {
    50: '#a69861',
    500: '#7d7020',
    950: '#000000',
  },
}
SCSS
$custom: #7d7020;
$custom-light: #a69861;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7020",
  "rgb": {
    "r": 125,
    "g": 112,
    "b": 32
  },
  "hsl": {
    "h": 51.613,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.09885,
    "h": 99.8
  },
  "luminance": 0.16053
}

Semantic roles & 50–950 ramp

primary
#7D7020
secondary
#4957B0
accent
#5BE245
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7D7020

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

Preview Lab → · Contrast checker → · Palette generator →

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