#7F882B#7F882B

#7F882B is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.1% C 0.116 H 114.7°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7F882B
RGBrgb(127, 136, 43)
HSLhsl(66, 52%, 35%)
HSVhsv(66, 68%, 53%)
CMYKcmyk(6.6%, 0%, 68.4%, 46.7%)
CIE-LABlab(54.34, -16.09, 46.72)
CIE-LCHlch(54.34, 49.41, 109.00°)
OKLaboklab(60.08% -0.0483 0.1053)
OKLCHoklch(60.08% 0.116 114.7)
XYZxyz(17.9931, 22.2951, 5.6406)
Luminance0.2230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F882B #342B88
analogous
#88622B #7F882B #51882B
triadic
#7F882B #2B7F88 #882B7F
tetradic
#7F882B #2B8862 #342B88 #882B51
square
#7F882B #2B8862 #342B88 #882B51
split-complementary
#7F882B #2B5188 #622B88
monochromatic
#282B0E #545A1C #7F882B #AAB63A #C2CD61

Accessibility & contrast

On white

3.85
#7F882B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F882B#FFFFFF#000000##000000
##7F882B1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f882b;
/* rgb */ color: rgb(127, 136, 43);
/* oklch */ color: oklch(60.1% 0.116 114.7);
Tailwind
colors: {
  custom: {
    50: '#a7aa6a',
    500: '#7f882b',
    950: '#000000',
  },
}
SCSS
$custom: #7f882b;
$custom-light: #a7aa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f882b",
  "rgb": {
    "r": 127,
    "g": 136,
    "b": 43
  },
  "hsl": {
    "h": 65.806,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60084,
    "c": 0.11582,
    "h": 114.7
  },
  "luminance": 0.22295
}

Semantic roles & 50–950 ramp

primary
#7F882B
secondary
#645CB3
accent
#4CDB5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F882B

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

Preview Lab → · Contrast checker → · Palette generator →

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