#7D8822#7D8822

#7D8822 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.8% C 0.123 H 115.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7D8822
RGBrgb(125, 136, 34)
HSLhsl(66, 60%, 33%)
HSVhsv(66, 75%, 53%)
CMYKcmyk(8.1%, 0%, 75%, 46.7%)
CIE-LABlab(54.12, -17.50, 49.99)
CIE-LCHlch(54.12, 52.96, 109.30°)
OKLaboklab(59.85% -0.053 0.1106)
OKLCHoklch(59.85% 0.123 115.6)
XYZxyz(17.5508, 22.0841, 4.8512)
Luminance0.2208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8822 #2D2288
analogous
#886022 #7D8822 #4A8822
triadic
#7D8822 #227D88 #88227D
tetradic
#7D8822 #228860 #2D2288 #88224A
square
#7D8822 #228860 #2D2288 #88224A
split-complementary
#7D8822 #224A88 #602288
monochromatic
#23260A #505716 #7D8822 #AAB92E #C5D351

Accessibility & contrast

On white

3.88
#7D8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7D8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8822
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8822#FFFFFF#000000##000000
##7D88221.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810D
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#858074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d8822;
/* rgb */ color: rgb(125, 136, 34);
/* oklch */ color: oklch(59.8% 0.123 115.6);
Tailwind
colors: {
  custom: {
    50: '#a6aa65',
    500: '#7d8822',
    950: '#000000',
  },
}
SCSS
$custom: #7d8822;
$custom-light: #a6aa65;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8822",
  "rgb": {
    "r": 125,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 66.471,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59845,
    "c": 0.12268,
    "h": 115.6
  },
  "luminance": 0.22084
}

Semantic roles & 50–950 ramp

primary
#7D8822
secondary
#5A4FB7
accent
#45E356
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8822

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

Preview Lab → · Contrast checker → · Palette generator →

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