#7D8B16#7D8B16

#7D8B16 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.132 H 116.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D8B16
RGBrgb(125, 139, 22)
HSLhsl(67, 73%, 32%)
HSVhsv(67, 84%, 55%)
CMYKcmyk(10.1%, 0%, 84.2%, 45.5%)
CIE-LABlab(54.95, -19.57, 54.56)
CIE-LCHlch(54.95, 57.97, 109.74°)
OKLaboklab(60.5% -0.0597 0.1182)
OKLCHoklch(60.5% 0.132 116.8)
XYZxyz(17.8354, 22.8834, 4.2363)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B16 #24168B
analogous
#8B5F16 #7D8B16 #438B16
triadic
#7D8B16 #167D8B #8B167D
tetradic
#7D8B16 #168B5F #24168B #8B1643
square
#7D8B16 #168B5F #24168B #8B1643
split-complementary
#7D8B16 #16438B #5F168B
monochromatic
#1E2105 #4D560E #7D8B16 #ADC01E #CCE03B

Accessibility & contrast

On white

3.77
#7D8B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7D8B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8B16
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8B16#FFFFFF#000000##000000
##7D8B161.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#858376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8b16;
/* rgb */ color: rgb(125, 139, 22);
/* oklch */ color: oklch(60.5% 0.132 116.8);
Tailwind
colors: {
  custom: {
    50: '#a6ac60',
    500: '#7d8b16',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b16;
$custom-light: #a6ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b16",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 67.179,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60498,
    "c": 0.13241,
    "h": 116.8
  },
  "luminance": 0.22883
}

Semantic roles & 50–950 ramp

primary
#7D8B16
secondary
#4D3EBF
accent
#38EF4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8B16

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

Preview Lab → · Contrast checker → · Palette generator →

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