#7D8A20#7D8A20

#7D8A20 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.126 H 116.5°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7D8A20
RGBrgb(125, 138, 32)
HSLhsl(67, 62%, 33%)
HSVhsv(67, 77%, 54%)
CMYKcmyk(9.4%, 0%, 76.8%, 45.9%)
CIE-LABlab(54.70, -18.64, 51.25)
CIE-LCHlch(54.70, 54.54, 109.99°)
OKLaboklab(60.31% -0.0564 0.1129)
OKLCHoklch(60.31% 0.126 116.5)
XYZxyz(17.8071, 22.6415, 4.7984)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A20 #2D208A
analogous
#8A6220 #7D8A20 #488A20
triadic
#7D8A20 #207D8A #8A207D
tetradic
#7D8A20 #208A62 #2D208A #8A2048
square
#7D8A20 #208A62 #2D208A #8A2048
split-complementary
#7D8A20 #20488A #62208A
monochromatic
#232709 #505814 #7D8A20 #AABC2C #C5D64E

Accessibility & contrast

On white

3.80
#7D8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7D8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A20
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A20#FFFFFF#000000##000000
##7D8A201.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948207
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a20;
/* rgb */ color: rgb(125, 138, 32);
/* oklch */ color: oklch(60.3% 0.126 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac64',
    500: '#7d8a20',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a20;
$custom-light: #a6ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a20",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 67.358,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60311,
    "c": 0.12623,
    "h": 116.5
  },
  "luminance": 0.22641
}

Semantic roles & 50–950 ramp

primary
#7D8A20
secondary
#5A4DB9
accent
#42E556
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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