#7E882B#7E882B

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

Color values

HEX#7E882B
RGBrgb(126, 136, 43)
HSLhsl(66, 52%, 35%)
HSVhsv(66, 68%, 53%)
CMYKcmyk(7.4%, 0%, 68.4%, 46.7%)
CIE-LABlab(54.26, -16.53, 46.61)
CIE-LCHlch(54.26, 49.45, 109.53°)
OKLaboklab(60% -0.0495 0.1051)
OKLCHoklch(60% 0.116 115.2)
XYZxyz(17.8448, 22.2186, 5.6336)
Luminance0.2222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E882B #352B88
analogous
#88642B #7E882B #4F882B
triadic
#7E882B #2B7E88 #882B7E
tetradic
#7E882B #2B8864 #352B88 #882B4F
square
#7E882B #2B8864 #352B88 #882B4F
split-complementary
#7E882B #2B4F88 #642B88
monochromatic
#282B0E #535A1C #7E882B #A9B63A #C1CD61

Accessibility & contrast

On white

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

On black

5.44
#7E882B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E882B
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E882B#FFFFFF#000000##000000
##7E882B1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e882b;
/* rgb */ color: rgb(126, 136, 43);
/* oklch */ color: oklch(60.0% 0.116 115.2);
Tailwind
colors: {
  custom: {
    50: '#a6aa6a',
    500: '#7e882b',
    950: '#000000',
  },
}
SCSS
$custom: #7e882b;
$custom-light: #a6aa6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e882b",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 43
  },
  "hsl": {
    "h": 66.452,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59999,
    "c": 0.11614,
    "h": 115.2
  },
  "luminance": 0.22218
}

Semantic roles & 50–950 ramp

primary
#7E882B
secondary
#655CB3
accent
#4CDB5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E882B

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

Preview Lab → · Contrast checker → · Palette generator →

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