#7D7E20#7D7E20

#7D7E20 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.113 H 110.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7D7E20
RGBrgb(125, 126, 32)
HSLhsl(61, 59%, 31%)
HSVhsv(61, 75%, 49%)
CMYKcmyk(0.8%, 0%, 74.6%, 50.6%)
CIE-LABlab(51.14, -12.27, 47.88)
CIE-LCHlch(51.14, 49.43, 104.38°)
OKLaboklab(57.46% -0.0387 0.1058)
OKLCHoklch(57.46% 0.113 110.1)
XYZxyz(16.1796, 19.3864, 4.2559)
Luminance0.1939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7E20 #21207E
analogous
#7E5020 #7D7E20 #4E7E20
triadic
#7D7E20 #207D7E #7E207D
tetradic
#7D7E20 #207E50 #21207E #7E204E
square
#7D7E20 #207E50 #21207E #7E204E
split-complementary
#7D7E20 #204E7E #50207E
monochromatic
#1C1C07 #4D4D14 #7D7E20 #ADAF2C #CFD048

Accessibility & contrast

On white

4.31
#7D7E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7D7E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7E20
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7E20#FFFFFF#000000##000000
##7D7E201.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780E
Deuteranopia (green-blind)
#897B27
Tritanopia (blue-blind)
#86766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7e20;
/* rgb */ color: rgb(125, 126, 32);
/* oklch */ color: oklch(57.5% 0.113 110.1);
Tailwind
colors: {
  custom: {
    50: '#a6a363',
    500: '#7d7e20',
    950: '#000000',
  },
}
SCSS
$custom: #7d7e20;
$custom-light: #a6a363;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7e20",
  "rgb": {
    "r": 125,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 60.638,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57455,
    "c": 0.11265,
    "h": 110.1
  },
  "luminance": 0.19386
}

Semantic roles & 50–950 ramp

primary
#7D7E20
secondary
#4A49B1
accent
#45E347
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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