#7E822B#7E822B

#7E822B is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.6% C 0.109 H 111.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7E822B
RGBrgb(126, 130, 43)
HSLhsl(63, 50%, 34%)
HSVhsv(63, 67%, 51%)
CMYKcmyk(3.1%, 0%, 66.9%, 49%)
CIE-LABlab(52.48, -13.34, 44.77)
CIE-LCHlch(52.48, 46.72, 106.59°)
OKLaboklab(58.58% -0.0406 0.1012)
OKLCHoklch(58.58% 0.109 111.8)
XYZxyz(17.0234, 20.5757, 5.3598)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E822B #2F2B82
analogous
#825B2B #7E822B #53822B
triadic
#7E822B #2B7E82 #822B7E
tetradic
#7E822B #2B825B #2F2B82 #822B53
square
#7E822B #2B825B #2F2B82 #822B53
split-complementary
#7E822B #2B5382 #5B2B82
monochromatic
#25260D #51541C #7E822B #ABB03A #C5CA5E

Accessibility & contrast

On white

4.11
#7E822B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#7E822B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E822B
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E822B#FFFFFF#000000##000000
##7E822B1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1F
Deuteranopia (green-blind)
#8C7E31
Tritanopia (blue-blind)
#877A70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e822b;
/* rgb */ color: rgb(126, 130, 43);
/* oklch */ color: oklch(58.6% 0.109 111.8);
Tailwind
colors: {
  custom: {
    50: '#a6a669',
    500: '#7e822b',
    950: '#000000',
  },
}
SCSS
$custom: #7e822b;
$custom-light: #a6a669;
$custom-dark: #000000;
JSON
{
  "hex": "#7e822b",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 43
  },
  "hsl": {
    "h": 62.759,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58577,
    "c": 0.10901,
    "h": 111.8
  },
  "luminance": 0.20575
}

Semantic roles & 50–950 ramp

primary
#7E822B
secondary
#5D59B0
accent
#4EDA54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E822B

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

Preview Lab → · Contrast checker → · Palette generator →

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