#7D882B#7D882B

#7D882B is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 59.9% C 0.116 H 115.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7D882B
RGBrgb(125, 136, 43)
HSLhsl(67, 52%, 35%)
HSVhsv(67, 68%, 53%)
CMYKcmyk(8.1%, 0%, 68.4%, 46.7%)
CIE-LABlab(54.18, -16.98, 46.50)
CIE-LCHlch(54.18, 49.50, 110.05°)
OKLaboklab(59.92% -0.0507 0.1049)
OKLCHoklch(59.92% 0.116 115.8)
XYZxyz(17.6981, 22.1430, 5.6267)
Luminance0.2214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D882B #362B88
analogous
#88652B #7D882B #4E882B
triadic
#7D882B #2B7D88 #882B7D
tetradic
#7D882B #2B8865 #362B88 #882B4E
square
#7D882B #2B8865 #362B88 #882B4E
split-complementary
#7D882B #2B4E88 #652B88
monochromatic
#282B0E #525A1C #7D882B #A8B63A #C0CD61

Accessibility & contrast

On white

3.87
#7D882B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7D882B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D882B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D882B#FFFFFF#000000##000000
##7D882B1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811E
Deuteranopia (green-blind)
#918232
Tritanopia (blue-blind)
#858075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d882b;
/* rgb */ color: rgb(125, 136, 43);
/* oklch */ color: oklch(59.9% 0.116 115.8);
Tailwind
colors: {
  custom: {
    50: '#a5aa6a',
    500: '#7d882b',
    950: '#000000',
  },
}
SCSS
$custom: #7d882b;
$custom-light: #a5aa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d882b",
  "rgb": {
    "r": 125,
    "g": 136,
    "b": 43
  },
  "hsl": {
    "h": 67.097,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59915,
    "c": 0.11646,
    "h": 115.8
  },
  "luminance": 0.22143
}

Semantic roles & 50–950 ramp

primary
#7D882B
secondary
#665CB3
accent
#4CDB5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7D882B

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

Preview Lab → · Contrast checker → · Palette generator →

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