#7E8520#7E8520

#7E8520 is a mid, vivid yellow. Relative luminance 0.213; OKLCH L 59.2% C 0.120 H 113.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7E8520
RGBrgb(126, 133, 32)
HSLhsl(64, 61%, 32%)
HSVhsv(64, 76%, 52%)
CMYKcmyk(5.3%, 0%, 75.9%, 47.8%)
CIE-LABlab(53.29, -15.57, 49.96)
CIE-LCHlch(53.29, 52.33, 107.31°)
OKLaboklab(59.2% -0.0479 0.1102)
OKLCHoklch(59.2% 0.12 113.5)
XYZxyz(17.2530, 21.3153, 4.5716)
Luminance0.2132 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8520 #272085
analogous
#855920 #7E8520 #4C8520
triadic
#7E8520 #207E85 #85207E
tetradic
#7E8520 #208559 #272085 #85204C
square
#7E8520 #208559 #272085 #85204C
split-complementary
#7E8520 #204C85 #592085
monochromatic
#212208 #4F5414 #7E8520 #ADB62C #CAD44C

Accessibility & contrast

On white

3.99
#7E8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#7E8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8520
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8520#FFFFFF#000000##000000
##7E85201.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0A
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#877D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8520;
/* rgb */ color: rgb(126, 133, 32);
/* oklch */ color: oklch(59.2% 0.120 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a864',
    500: '#7e8520',
    950: '#000000',
  },
}
SCSS
$custom: #7e8520;
$custom-light: #a6a864;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8520",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 64.158,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59201,
    "c": 0.12014,
    "h": 113.5
  },
  "luminance": 0.21315
}

Semantic roles & 50–950 ramp

primary
#7E8520
secondary
#524AB7
accent
#43E44F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8520

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

Preview Lab → · Contrast checker → · Palette generator →

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