#7D8916#7D8916

#7D8916 is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.130 H 115.9°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7D8916
RGBrgb(125, 137, 22)
HSLhsl(66, 72%, 31%)
HSVhsv(66, 84%, 54%)
CMYKcmyk(8.8%, 0%, 83.9%, 46.3%)
CIE-LABlab(54.35, -18.54, 54.04)
CIE-LCHlch(54.35, 57.14, 108.93°)
OKLaboklab(60.02% -0.0569 0.1171)
OKLCHoklch(60.02% 0.13 115.9)
XYZxyz(17.5484, 22.3095, 4.1406)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8916 #221689
analogous
#895B16 #7D8916 #438916
triadic
#7D8916 #167D89 #89167D
tetradic
#7D8916 #16895B #221689 #891643
square
#7D8916 #16895B #221689 #891643
split-complementary
#7D8916 #164389 #5B1689
monochromatic
#1D2005 #4D540E #7D8916 #ADBE1E #CEDF3A

Accessibility & contrast

On white

3.84
#7D8916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#7D8916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8916
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8916#FFFFFF#000000##000000
##7D89161.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928322
Tritanopia (blue-blind)
#868175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d8916;
/* rgb */ color: rgb(125, 137, 22);
/* oklch */ color: oklch(60.0% 0.130 115.9);
Tailwind
colors: {
  custom: {
    50: '#a6ab60',
    500: '#7d8916',
    950: '#000000',
  },
}
SCSS
$custom: #7d8916;
$custom-light: #a6ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8916",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 66.261,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60017,
    "c": 0.13015,
    "h": 115.9
  },
  "luminance": 0.22309
}

Semantic roles & 50–950 ramp

primary
#7D8916
secondary
#4B3EBD
accent
#39EF4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8916

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

Preview Lab → · Contrast checker → · Palette generator →

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