#7E7020#7E7020

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

Color values

HEX#7E7020
RGBrgb(126, 112, 32)
HSLhsl(51, 59%, 31%)
HSVhsv(51, 75%, 49%)
CMYKcmyk(0%, 11.1%, 74.6%, 50.6%)
CIE-LABlab(47.14, -4.03, 44.05)
CIE-LCHlch(47.14, 44.23, 95.22°)
OKLaboklab(54.3% -0.0155 0.0977)
OKLCHoklch(54.3% 0.099 99)
XYZxyz(14.6598, 16.1290, 3.7072)
Luminance0.1613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7020 #202E7E
analogous
#7E4120 #7E7020 #5D7E20
triadic
#7E7020 #207E70 #70207E
tetradic
#7E7020 #207E41 #202E7E #7E205D
square
#7E7020 #207E41 #202E7E #7E205D
split-complementary
#7E7020 #205D7E #41207E
monochromatic
#1C1907 #4D4514 #7E7020 #AF9B2C #D0BC48

Accessibility & contrast

On white

4.97
#7E7020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7E7020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7020
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7020#FFFFFF#000000##FFFFFF
##7E70201.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7020;
/* rgb */ color: rgb(126, 112, 32);
/* oklch */ color: oklch(54.3% 0.099 99.0);
Tailwind
colors: {
  custom: {
    50: '#a79861',
    500: '#7e7020',
    950: '#000000',
  },
}
SCSS
$custom: #7e7020;
$custom-light: #a79861;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7020",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 32
  },
  "hsl": {
    "h": 51.064,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54298,
    "c": 0.09888,
    "h": 99
  },
  "luminance": 0.16128
}

Semantic roles & 50–950 ramp

primary
#7E7020
secondary
#4958B1
accent
#5DE345
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E7020

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

Preview Lab → · Contrast checker → · Palette generator →

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