#7F882C#7F882C

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

Color values

HEX#7F882C
RGBrgb(127, 136, 44)
HSLhsl(66, 51%, 35%)
HSVhsv(66, 68%, 53%)
CMYKcmyk(6.6%, 0%, 67.6%, 46.7%)
CIE-LABlab(54.35, -16.02, 46.30)
CIE-LCHlch(54.35, 49.00, 109.09°)
OKLaboklab(60.09% -0.048 0.1045)
OKLCHoklch(60.09% 0.115 114.7)
XYZxyz(18.0116, 22.3025, 5.7384)
Luminance0.2230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F882C #352C88
analogous
#88632C #7F882C #51882C
triadic
#7F882C #2C7F88 #882C7F
tetradic
#7F882C #2C8863 #352C88 #882C51
square
#7F882C #2C8863 #352C88 #882C51
split-complementary
#7F882C #2C5188 #632C88
monochromatic
#292C0E #545A1D #7F882C #AAB63B #C2CC62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F882C#FFFFFF#000000##000000
##7F882C1.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)
#92811F
Deuteranopia (green-blind)
#918332
Tritanopia (blue-blind)
#878075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f882c;
/* rgb */ color: rgb(127, 136, 44);
/* oklch */ color: oklch(60.1% 0.115 114.7);
Tailwind
colors: {
  custom: {
    50: '#a7aa6a',
    500: '#7f882c',
    950: '#000000',
  },
}
SCSS
$custom: #7f882c;
$custom-light: #a7aa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f882c",
  "rgb": {
    "r": 127,
    "g": 136,
    "b": 44
  },
  "hsl": {
    "h": 65.87,
    "s": 51.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60092,
    "c": 0.11504,
    "h": 114.7
  },
  "luminance": 0.22302
}

Semantic roles & 50–950 ramp

primary
#7F882C
secondary
#665DB3
accent
#4DDB5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F882C

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

Preview Lab → · Contrast checker → · Palette generator →

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