#7E8022#7E8022

#7E8022 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.113 H 110.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7E8022
RGBrgb(126, 128, 34)
HSLhsl(61, 58%, 32%)
HSVhsv(61, 73%, 50%)
CMYKcmyk(1.6%, 0%, 73.4%, 49.8%)
CIE-LABlab(51.83, -12.80, 47.81)
CIE-LCHlch(51.83, 49.49, 104.98°)
OKLaboklab(58.03% -0.04 0.106)
OKLCHoklch(58.03% 0.113 110.7)
XYZxyz(16.6126, 19.9899, 4.4964)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8022 #242280
analogous
#805322 #7E8022 #4F8022
triadic
#7E8022 #227E80 #80227E
tetradic
#7E8022 #228053 #242280 #80224F
square
#7E8022 #228053 #242280 #80224F
split-complementary
#7E8022 #224F80 #532280
monochromatic
#1F1F08 #4E5015 #7E8022 #AEB02F #CDD04D

Accessibility & contrast

On white

4.20
#7E8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7E8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8022
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8022#FFFFFF#000000##000000
##7E80221.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A11
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8022;
/* rgb */ color: rgb(126, 128, 34);
/* oklch */ color: oklch(58.0% 0.113 110.7);
Tailwind
colors: {
  custom: {
    50: '#a6a464',
    500: '#7e8022',
    950: '#000000',
  },
}
SCSS
$custom: #7e8022;
$custom-light: #a6a464;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8022",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 61.277,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58031,
    "c": 0.1133,
    "h": 110.7
  },
  "luminance": 0.19989
}

Semantic roles & 50–950 ramp

primary
#7E8022
secondary
#4E4BB2
accent
#47E14A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8022

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

Preview Lab → · Contrast checker → · Palette generator →

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