#7D7822#7D7822

#7D7822 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.105 H 106.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7D7822
RGBrgb(125, 120, 34)
HSLhsl(57, 57%, 31%)
HSVhsv(57, 73%, 49%)
CMYKcmyk(0%, 4%, 72.8%, 51%)
CIE-LABlab(49.39, -8.88, 45.40)
CIE-LCHlch(49.39, 46.26, 101.07°)
OKLaboklab(56.06% -0.029 0.1009)
OKLCHoklch(56.06% 0.105 106)
XYZxyz(15.4633, 17.9090, 4.1553)
Luminance0.1791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7822 #22277D
analogous
#7D4A22 #7D7822 #547D22
triadic
#7D7822 #227D78 #78227D
tetradic
#7D7822 #227D4A #22277D #7D2254
square
#7D7822 #227D4A #22277D #7D2254
split-complementary
#7D7822 #22547D #4A227D
monochromatic
#1D1C08 #4D4A15 #7D7822 #ADA62F #CEC74B

Accessibility & contrast

On white

4.58
#7D7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7D7822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7822
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7822#FFFFFF#000000##000000
##7D78221.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837314
Deuteranopia (green-blind)
#857728
Tritanopia (blue-blind)
#867067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d7822;
/* rgb */ color: rgb(125, 120, 34);
/* oklch */ color: oklch(56.1% 0.105 106.0);
Tailwind
colors: {
  custom: {
    50: '#a69e63',
    500: '#7d7822',
    950: '#000000',
  },
}
SCSS
$custom: #7d7822;
$custom-light: #a69e63;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7822",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 56.703,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56062,
    "c": 0.10501,
    "h": 106
  },
  "luminance": 0.17908
}

Semantic roles & 50–950 ramp

primary
#7D7822
secondary
#4B51B0
accent
#50E047
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7D7822

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

Preview Lab → · Contrast checker → · Palette generator →

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