#7F882A#7F882A

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

Color values

HEX#7F882A
RGBrgb(127, 136, 42)
HSLhsl(66, 53%, 35%)
HSVhsv(66, 69%, 53%)
CMYKcmyk(6.6%, 0%, 69.1%, 46.7%)
CIE-LABlab(54.33, -16.15, 47.13)
CIE-LCHlch(54.33, 49.82, 108.92°)
OKLaboklab(60.08% -0.0486 0.1059)
OKLCHoklch(60.08% 0.117 114.7)
XYZxyz(17.9749, 22.2878, 5.5451)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F882A #332A88
analogous
#88622A #7F882A #50882A
triadic
#7F882A #2A7F88 #882A7F
tetradic
#7F882A #2A8862 #332A88 #882A50
square
#7F882A #2A8862 #332A88 #882A50
split-complementary
#7F882A #2A5088 #622A88
monochromatic
#282A0D #53591C #7F882A #ABB738 #C3CE5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F882A#FFFFFF#000000##000000
##7F882A1.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)
#92811C
Deuteranopia (green-blind)
#918331
Tritanopia (blue-blind)
#878075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f882a;
/* rgb */ color: rgb(127, 136, 42);
/* oklch */ color: oklch(60.1% 0.117 114.7);
Tailwind
colors: {
  custom: {
    50: '#a7aa69',
    500: '#7f882a',
    950: '#000000',
  },
}
SCSS
$custom: #7f882a;
$custom-light: #a7aa69;
$custom-dark: #000000;
JSON
{
  "hex": "#7f882a",
  "rgb": {
    "r": 127,
    "g": 136,
    "b": 42
  },
  "hsl": {
    "h": 65.745,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60075,
    "c": 0.11656,
    "h": 114.7
  },
  "luminance": 0.22288
}

Semantic roles & 50–950 ramp

primary
#7F882A
secondary
#635BB3
accent
#4CDC59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F882A

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

Preview Lab → · Contrast checker → · Palette generator →

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