#7E8222#7E8222

#7E8222 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.5% C 0.116 H 111.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E8222
RGBrgb(126, 130, 34)
HSLhsl(63, 59%, 32%)
HSVhsv(63, 74%, 51%)
CMYKcmyk(3.1%, 0%, 73.8%, 49%)
CIE-LABlab(52.42, -13.87, 48.38)
CIE-LCHlch(52.42, 50.33, 106.00°)
OKLaboklab(58.5% -0.043 0.1072)
OKLCHoklch(58.5% 0.116 111.9)
XYZxyz(16.8761, 20.5168, 4.5842)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8222 #262282
analogous
#825622 #7E8222 #4E8222
triadic
#7E8222 #227E82 #82227E
tetradic
#7E8222 #228256 #262282 #82224E
square
#7E8222 #228256 #262282 #82224E
split-complementary
#7E8222 #224E82 #562282
monochromatic
#202109 #4F5115 #7E8222 #ADB32F #CBD14E

Accessibility & contrast

On white

4.12
#7E8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#7E8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8222
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8222#FFFFFF#000000##000000
##7E82221.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C10
Deuteranopia (green-blind)
#8D7E29
Tritanopia (blue-blind)
#877A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e8222;
/* rgb */ color: rgb(126, 130, 34);
/* oklch */ color: oklch(58.5% 0.116 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a664',
    500: '#7e8222',
    950: '#000000',
  },
}
SCSS
$custom: #7e8222;
$custom-light: #a6a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8222",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 62.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58503,
    "c": 0.11551,
    "h": 111.9
  },
  "luminance": 0.20516
}

Semantic roles & 50–950 ramp

primary
#7E8222
secondary
#504CB4
accent
#46E24D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8222

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

Preview Lab → · Contrast checker → · Palette generator →

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