#7E8431#7E8431

#7E8431 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.1% C 0.106 H 113.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7E8431
RGBrgb(126, 132, 49)
HSLhsl(64, 46%, 35%)
HSVhsv(64, 63%, 52%)
CMYKcmyk(4.5%, 0%, 62.9%, 48.2%)
CIE-LABlab(53.12, -13.99, 42.77)
CIE-LCHlch(53.12, 45.00, 108.11°)
OKLaboklab(59.11% -0.0417 0.0979)
OKLCHoklch(59.11% 0.106 113.1)
XYZxyz(17.4103, 21.1602, 6.0723)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8431 #373184
analogous
#846031 #7E8431 #558431
triadic
#7E8431 #317E84 #84317E
tetradic
#7E8431 #318460 #373184 #843155
square
#7E8431 #318460 #373184 #843155
split-complementary
#7E8431 #315584 #603184
monochromatic
#292B10 #535720 #7E8431 #A9B142 #C0C768

Accessibility & contrast

On white

4.01
#7E8431 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7E8431 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8431
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8431#FFFFFF#000000##000000
##7E84311.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E27
Deuteranopia (green-blind)
#8D8036
Tritanopia (blue-blind)
#867C72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8431;
/* rgb */ color: rgb(126, 132, 49);
/* oklch */ color: oklch(59.1% 0.106 113.1);
Tailwind
colors: {
  custom: {
    50: '#a6a76d',
    500: '#7e8431',
    950: '#000000',
  },
}
SCSS
$custom: #7e8431;
$custom-light: #a6a76d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8431",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 49
  },
  "hsl": {
    "h": 64.337,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59107,
    "c": 0.1064,
    "h": 113.1
  },
  "luminance": 0.2116
}

Semantic roles & 50–950 ramp

primary
#7E8431
secondary
#6862AE
accent
#52D65C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E8431

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

Preview Lab → · Contrast checker → · Palette generator →

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