#7E822D#7E822D

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

Color values

HEX#7E822D
RGBrgb(126, 130, 45)
HSLhsl(63, 49%, 34%)
HSVhsv(63, 65%, 51%)
CMYKcmyk(3.1%, 0%, 65.4%, 49%)
CIE-LABlab(52.50, -13.20, 43.91)
CIE-LCHlch(52.50, 45.85, 106.74°)
OKLaboklab(58.6% -0.04 0.0997)
OKLCHoklch(58.6% 0.107 111.8)
XYZxyz(17.0609, 20.5907, 5.5578)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E822D #312D82
analogous
#825C2D #7E822D #54822D
triadic
#7E822D #2D7E82 #822D7E
tetradic
#7E822D #2D825C #312D82 #822D54
square
#7E822D #2D825C #312D82 #822D54
split-complementary
#7E822D #2D5482 #5C2D82
monochromatic
#26270E #52551D #7E822D #AAAF3D #C3C861

Accessibility & contrast

On white

4.10
#7E822D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7E822D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E822D
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E822D#FFFFFF#000000##000000
##7E822D1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C22
Deuteranopia (green-blind)
#8C7E33
Tritanopia (blue-blind)
#867A70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e822d;
/* rgb */ color: rgb(126, 130, 45);
/* oklch */ color: oklch(58.6% 0.107 111.8);
Tailwind
colors: {
  custom: {
    50: '#a6a66a',
    500: '#7e822d',
    950: '#000000',
  },
}
SCSS
$custom: #7e822d;
$custom-light: #a6a66a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e822d",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 45
  },
  "hsl": {
    "h": 62.824,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58595,
    "c": 0.1074,
    "h": 111.8
  },
  "luminance": 0.2059
}

Semantic roles & 50–950 ramp

primary
#7E822D
secondary
#605CAF
accent
#50D856
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E822D

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

Preview Lab → · Contrast checker → · Palette generator →

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