#7D8A16#7D8A16

#7D8A16 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.131 H 116.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D8A16
RGBrgb(125, 138, 22)
HSLhsl(67, 73%, 31%)
HSVhsv(67, 84%, 54%)
CMYKcmyk(9.4%, 0%, 84.1%, 45.9%)
CIE-LABlab(54.65, -19.06, 54.30)
CIE-LCHlch(54.65, 57.55, 109.34°)
OKLaboklab(60.26% -0.0583 0.1176)
OKLCHoklch(60.26% 0.131 116.4)
XYZxyz(17.6912, 22.5951, 4.1882)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A16 #23168A
analogous
#8A5D16 #7D8A16 #438A16
triadic
#7D8A16 #167D8A #8A167D
tetradic
#7D8A16 #168A5D #23168A #8A1643
square
#7D8A16 #168A5D #23168A #8A1643
split-complementary
#7D8A16 #16438A #5D168A
monochromatic
#1D2005 #4D550E #7D8A16 #ADBF1E #CDE03B

Accessibility & contrast

On white

3.81
#7D8A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7D8A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A16
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A16#FFFFFF#000000##000000
##7D8A161.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#868275
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a16;
/* rgb */ color: rgb(125, 138, 22);
/* oklch */ color: oklch(60.3% 0.131 116.4);
Tailwind
colors: {
  custom: {
    50: '#a6ac60',
    500: '#7d8a16',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a16;
$custom-light: #a6ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a16",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 66.724,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60257,
    "c": 0.13127,
    "h": 116.4
  },
  "luminance": 0.22595
}

Semantic roles & 50–950 ramp

primary
#7D8A16
secondary
#4C3EBE
accent
#39EF4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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