#7D8722#7D8722

#7D8722 is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.122 H 115.1°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7D8722
RGBrgb(125, 135, 34)
HSLhsl(66, 60%, 33%)
HSVhsv(66, 75%, 53%)
CMYKcmyk(7.4%, 0%, 74.8%, 47.1%)
CIE-LABlab(53.82, -16.98, 49.70)
CIE-LCHlch(53.82, 52.52, 108.86°)
OKLaboklab(59.61% -0.0516 0.11)
OKLCHoklch(59.61% 0.122 115.1)
XYZxyz(17.4106, 21.8037, 4.8044)
Luminance0.2180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8722 #2C2287
analogous
#875E22 #7D8722 #4A8722
triadic
#7D8722 #227D87 #87227D
tetradic
#7D8722 #22875E #2C2287 #87224A
square
#7D8722 #22875E #2C2287 #87224A
split-complementary
#7D8722 #224A87 #5E2287
monochromatic
#222509 #505616 #7D8722 #AAB82E #C6D350

Accessibility & contrast

On white

3.92
#7D8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7D8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8722
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8722#FFFFFF#000000##000000
##7D87221.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#857F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d8722;
/* rgb */ color: rgb(125, 135, 34);
/* oklch */ color: oklch(59.6% 0.122 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6a965',
    500: '#7d8722',
    950: '#000000',
  },
}
SCSS
$custom: #7d8722;
$custom-light: #a6a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8722",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 65.941,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59606,
    "c": 0.12152,
    "h": 115.1
  },
  "luminance": 0.21803
}

Semantic roles & 50–950 ramp

primary
#7D8722
secondary
#594EB7
accent
#45E355
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8722

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

Preview Lab → · Contrast checker → · Palette generator →

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