#7E882D#7E882D

#7E882D is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.0% C 0.115 H 115.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7E882D
RGBrgb(126, 136, 45)
HSLhsl(67, 50%, 35%)
HSVhsv(67, 67%, 53%)
CMYKcmyk(7.4%, 0%, 66.9%, 46.7%)
CIE-LABlab(54.27, -16.40, 45.77)
CIE-LCHlch(54.27, 48.62, 109.71°)
OKLaboklab(60.02% -0.0489 0.1036)
OKLCHoklch(60.02% 0.115 115.3)
XYZxyz(17.8824, 22.2337, 5.8316)
Luminance0.2223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E882D #372D88
analogous
#88642D #7E882D #51882D
triadic
#7E882D #2D7E88 #882D7E
tetradic
#7E882D #2D8864 #372D88 #882D51
square
#7E882D #2D8864 #372D88 #882D51
split-complementary
#7E882D #2D5188 #642D88
monochromatic
#292C0F #535A1E #7E882D #A9B63C #C0CC64

Accessibility & contrast

On white

3.86
#7E882D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#7E882D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E882D
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E882D#FFFFFF#000000##000000
##7E882D1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928121
Deuteranopia (green-blind)
#918333
Tritanopia (blue-blind)
#868075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e882d;
/* rgb */ color: rgb(126, 136, 45);
/* oklch */ color: oklch(60.0% 0.115 115.3);
Tailwind
colors: {
  custom: {
    50: '#a6aa6b',
    500: '#7e882d',
    950: '#000000',
  },
}
SCSS
$custom: #7e882d;
$custom-light: #a6aa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e882d",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 45
  },
  "hsl": {
    "h": 66.593,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60017,
    "c": 0.11458,
    "h": 115.3
  },
  "luminance": 0.22233
}

Semantic roles & 50–950 ramp

primary
#7E882D
secondary
#685FB2
accent
#4EDA5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E882D

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

Preview Lab → · Contrast checker → · Palette generator →

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