#7E8620#7E8620

#7E8620 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.121 H 114.0°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7E8620
RGBrgb(126, 134, 32)
HSLhsl(65, 61%, 33%)
HSVhsv(65, 76%, 53%)
CMYKcmyk(6%, 0%, 76.1%, 47.5%)
CIE-LABlab(53.59, -16.10, 50.24)
CIE-LCHlch(53.59, 52.75, 107.77°)
OKLaboklab(59.44% -0.0494 0.1108)
OKLCHoklch(59.44% 0.121 114)
XYZxyz(17.3905, 21.5904, 4.6175)
Luminance0.2159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8620 #282086
analogous
#865B20 #7E8620 #4B8620
triadic
#7E8620 #207E86 #86207E
tetradic
#7E8620 #20865B #282086 #86204B
square
#7E8620 #20865B #282086 #86204B
split-complementary
#7E8620 #204B86 #5B2086
monochromatic
#212308 #505514 #7E8620 #ACB72C #CAD44C

Accessibility & contrast

On white

3.95
#7E8620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7E8620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8620
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8620#FFFFFF#000000##000000
##7E86201.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0A
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#877E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e8620;
/* rgb */ color: rgb(126, 134, 32);
/* oklch */ color: oklch(59.4% 0.121 114.0);
Tailwind
colors: {
  custom: {
    50: '#a6a964',
    500: '#7e8620',
    950: '#000000',
  },
}
SCSS
$custom: #7e8620;
$custom-light: #a6a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8620",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 64.706,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59439,
    "c": 0.12127,
    "h": 114
  },
  "luminance": 0.2159
}

Semantic roles & 50–950 ramp

primary
#7E8620
secondary
#534BB7
accent
#43E550
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8620

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

Preview Lab → · Contrast checker → · Palette generator →

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