#7E7D31#7E7D31

#7E7D31 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.5% C 0.098 H 108.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E7D31
RGBrgb(126, 125, 49)
HSLhsl(59, 44%, 34%)
HSVhsv(59, 61%, 49%)
CMYKcmyk(0%, 0.8%, 61.1%, 50.6%)
CIE-LABlab(51.07, -10.19, 40.52)
CIE-LCHlch(51.07, 41.79, 104.12°)
OKLaboklab(57.46% -0.031 0.0931)
OKLCHoklch(57.46% 0.098 108.4)
XYZxyz(16.4927, 19.3251, 5.7665)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7D31 #31327E
analogous
#7E5731 #7E7D31 #597E31
triadic
#7E7D31 #317E7D #7D317E
tetradic
#7E7D31 #317E57 #31327E #7E3159
square
#7E7D31 #317E57 #31327E #7E3159
split-complementary
#7E7D31 #31597E #57317E
monochromatic
#26260F #525120 #7E7D31 #AAA942 #C3C266

Accessibility & contrast

On white

4.32
#7E7D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7E7D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7D31
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7D31#FFFFFF#000000##000000
##7E7D311.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877828
Deuteranopia (green-blind)
#887B35
Tritanopia (blue-blind)
#87756D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7d31;
/* rgb */ color: rgb(126, 125, 49);
/* oklch */ color: oklch(57.5% 0.098 108.4);
Tailwind
colors: {
  custom: {
    50: '#a6a26c',
    500: '#7e7d31',
    950: '#000000',
  },
}
SCSS
$custom: #7e7d31;
$custom-light: #a6a26c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7d31",
  "rgb": {
    "r": 126,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 59.221,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57463,
    "c": 0.09813,
    "h": 108.4
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#7E7D31
secondary
#6061AB
accent
#56D454
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#100F07
muted
#7F7E7A

Preview Lab

Preview with #7E7D31

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

Preview Lab → · Contrast checker → · Palette generator →

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