#7D8E20#7D8E20

#7D8E20 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.131 H 118.3°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7D8E20
RGBrgb(125, 142, 32)
HSLhsl(69, 63%, 34%)
HSVhsv(69, 77%, 56%)
CMYKcmyk(12%, 0%, 77.5%, 44.3%)
CIE-LABlab(55.90, -20.70, 52.37)
CIE-LCHlch(55.90, 56.32, 111.57°)
OKLaboklab(61.27% -0.0621 0.1153)
OKLCHoklch(61.27% 0.131 118.3)
XYZxyz(18.3916, 23.8104, 4.9932)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8E20 #31208E
analogous
#8E6820 #7D8E20 #468E20
triadic
#7D8E20 #207D8E #8E207D
tetradic
#7D8E20 #208E68 #31208E #8E2046
square
#7D8E20 #208E68 #31208E #8E2046
split-complementary
#7D8E20 #20468E #68208E
monochromatic
#252A09 #515C15 #7D8E20 #A9C02B #C3D851

Accessibility & contrast

On white

3.64
#7D8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#7D8E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8E20
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8E20#FFFFFF#000000##000000
##7D8E201.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988605
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#858679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7d8e20;
/* rgb */ color: rgb(125, 142, 32);
/* oklch */ color: oklch(61.3% 0.131 118.3);
Tailwind
colors: {
  custom: {
    50: '#a6af65',
    500: '#7d8e20',
    950: '#000000',
  },
}
SCSS
$custom: #7d8e20;
$custom-light: #a6af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8e20",
  "rgb": {
    "r": 125,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 69.273,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.13095,
    "h": 118.3
  },
  "luminance": 0.2381
}

Semantic roles & 50–950 ramp

primary
#7D8E20
secondary
#604FBB
accent
#42E65B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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