#7D8112#7D8112

#7D8112 is a mid, vivid yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.123 H 111.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7D8112
RGBrgb(125, 129, 18)
HSLhsl(62, 76%, 29%)
HSVhsv(62, 86%, 51%)
CMYKcmyk(3.1%, 0%, 86%, 49.4%)
CIE-LABlab(51.96, -14.45, 53.04)
CIE-LCHlch(51.96, 54.98, 105.24°)
OKLaboklab(58.09% -0.0459 0.1142)
OKLCHoklch(58.09% 0.123 111.9)
XYZxyz(16.4175, 20.1046, 3.5879)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8112 #161281
analogous
#814E12 #7D8112 #468112
triadic
#7D8112 #127D81 #81127D
tetradic
#7D8112 #12814E #161281 #811246
square
#7D8112 #12814E #161281 #811246
split-complementary
#7D8112 #124681 #4E1281
monochromatic
#1A1B04 #494B0B #7D8112 #B1B719 #DBE22C

Accessibility & contrast

On white

4.18
#7D8112 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7D8112 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8112
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8112#FFFFFF#000000##000000
##7D81121.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D1E
Tritanopia (blue-blind)
#86786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7d8112;
/* rgb */ color: rgb(125, 129, 18);
/* oklch */ color: oklch(58.1% 0.123 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a55d',
    500: '#7d8112',
    950: '#000000',
  },
}
SCSS
$custom: #7d8112;
$custom-light: #a6a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8112",
  "rgb": {
    "r": 125,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 62.162,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58088,
    "c": 0.12306,
    "h": 111.9
  },
  "luminance": 0.20104
}

Semantic roles & 50–950 ramp

primary
#7D8112
secondary
#3D38B7
accent
#36F23C
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8112

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

Preview Lab → · Contrast checker → · Palette generator →

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