#7E8720#7E8720

#7E8720 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.122 H 114.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E8720
RGBrgb(126, 135, 32)
HSLhsl(65, 62%, 33%)
HSVhsv(65, 76%, 53%)
CMYKcmyk(6.7%, 0%, 76.3%, 47.1%)
CIE-LABlab(53.89, -16.63, 50.52)
CIE-LCHlch(53.89, 53.18, 108.22°)
OKLaboklab(59.68% -0.0509 0.1113)
OKLCHoklch(59.68% 0.122 114.6)
XYZxyz(17.5294, 21.8682, 4.6638)
Luminance0.2187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8720 #292087
analogous
#875D20 #7E8720 #4A8720
triadic
#7E8720 #207E87 #87207E
tetradic
#7E8720 #20875D #292087 #87204A
square
#7E8720 #20875D #292087 #87204A
split-complementary
#7E8720 #204A87 #5D2087
monochromatic
#222409 #505614 #7E8720 #ACB82C #C9D54D

Accessibility & contrast

On white

3.91
#7E8720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#7E8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8720
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8720#FFFFFF#000000##000000
##7E87201.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918009
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#877F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8720;
/* rgb */ color: rgb(126, 135, 32);
/* oklch */ color: oklch(59.7% 0.122 114.6);
Tailwind
colors: {
  custom: {
    50: '#a6a964',
    500: '#7e8720',
    950: '#000000',
  },
}
SCSS
$custom: #7e8720;
$custom-light: #a6a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8720",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 65.243,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59677,
    "c": 0.12241,
    "h": 114.6
  },
  "luminance": 0.21868
}

Semantic roles & 50–950 ramp

primary
#7E8720
secondary
#554BB8
accent
#43E551
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8720

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

Preview Lab → · Contrast checker → · Palette generator →

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