#7E8731#7E8731

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

Color values

HEX#7E8731
RGBrgb(126, 135, 49)
HSLhsl(66, 47%, 36%)
HSVhsv(66, 64%, 53%)
CMYKcmyk(6.7%, 0%, 63.7%, 47.1%)
CIE-LABlab(54.01, -15.59, 43.73)
CIE-LCHlch(54.01, 46.42, 109.62°)
OKLaboklab(59.82% -0.0462 0.0999)
OKLCHoklch(59.82% 0.11 114.8)
XYZxyz(17.8229, 21.9856, 6.2099)
Luminance0.2198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8731 #3A3187
analogous
#876531 #7E8731 #538731
triadic
#7E8731 #317E87 #87317E
tetradic
#7E8731 #318765 #3A3187 #873153
square
#7E8731 #318765 #3A3187 #873153
split-complementary
#7E8731 #315387 #653187
monochromatic
#2A2D10 #545A21 #7E8731 #A8B441 #BFC96A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8731#FFFFFF#000000##000000
##7E87311.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)
#908027
Deuteranopia (green-blind)
#908237
Tritanopia (blue-blind)
#867F75
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8731;
/* rgb */ color: rgb(126, 135, 49);
/* oklch */ color: oklch(59.8% 0.110 114.8);
Tailwind
colors: {
  custom: {
    50: '#a6a96d',
    500: '#7e8731',
    950: '#000000',
  },
}
SCSS
$custom: #7e8731;
$custom-light: #a6a96d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8731",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 66.279,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59818,
    "c": 0.11006,
    "h": 114.8
  },
  "luminance": 0.21985
}

Semantic roles & 50–950 ramp

primary
#7E8731
secondary
#6C64B0
accent
#51D65F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8731

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

Preview Lab → · Contrast checker → · Palette generator →

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