#7E8732#7E8732

#7E8732 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 59.8% C 0.109 H 114.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E8732
RGBrgb(126, 135, 50)
HSLhsl(66, 46%, 36%)
HSVhsv(66, 63%, 53%)
CMYKcmyk(6.7%, 0%, 63%, 47.1%)
CIE-LABlab(54.02, -15.51, 43.28)
CIE-LCHlch(54.02, 45.97, 109.72°)
OKLaboklab(59.83% -0.0459 0.0991)
OKLCHoklch(59.83% 0.109 114.9)
XYZxyz(17.8443, 21.9941, 6.3223)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8732 #3B3287
analogous
#876632 #7E8732 #548732
triadic
#7E8732 #327E87 #87327E
tetradic
#7E8732 #328766 #3B3287 #873254
square
#7E8732 #328766 #3B3287 #873254
split-complementary
#7E8732 #325487 #663287
monochromatic
#2B2E11 #545A21 #7E8732 #A8B443 #BEC86B

Accessibility & contrast

On white

3.89
#7E8732 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#7E8732 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8732
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8732#FFFFFF#000000##000000
##7E87321.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#908028
Deuteranopia (green-blind)
#908237
Tritanopia (blue-blind)
#867F75
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8732;
/* rgb */ color: rgb(126, 135, 50);
/* oklch */ color: oklch(59.8% 0.109 114.9);
Tailwind
colors: {
  custom: {
    50: '#a6a96e',
    500: '#7e8732',
    950: '#000000',
  },
}
SCSS
$custom: #7e8732;
$custom-light: #a6a96e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8732",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 50
  },
  "hsl": {
    "h": 66.353,
    "s": 45.946,
    "l": 36.275
  },
  "oklch": {
    "l": 0.59828,
    "c": 0.1092,
    "h": 114.9
  },
  "luminance": 0.21994
}

Semantic roles & 50–950 ramp

primary
#7E8732
secondary
#6D65B0
accent
#52D660
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8732

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

Preview Lab → · Contrast checker → · Palette generator →

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