#7E7331#7E7331

#7E7331 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.2% C 0.088 H 99.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7E7331
RGBrgb(126, 115, 49)
HSLhsl(51, 44%, 34%)
HSVhsv(51, 61%, 49%)
CMYKcmyk(0%, 8.7%, 61.1%, 50.6%)
CIE-LABlab(48.16, -4.61, 37.29)
CIE-LCHlch(48.16, 37.58, 97.05°)
OKLaboklab(55.15% -0.0151 0.0862)
OKLCHoklch(55.15% 0.088 99.9)
XYZxyz(15.2899, 16.9195, 5.3655)
Luminance0.1692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7331 #313C7E
analogous
#7E4D31 #7E7331 #637E31
triadic
#7E7331 #317E73 #73317E
tetradic
#7E7331 #317E4D #313C7E #7E3163
square
#7E7331 #317E4D #313C7E #7E3163
split-complementary
#7E7331 #31637E #4D317E
monochromatic
#26230F #524B20 #7E7331 #AA9B42 #C3B666

Accessibility & contrast

On white

4.79
#7E7331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7E7331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7331
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7331#FFFFFF#000000##FFFFFF
##7E73311.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D702A
Deuteranopia (green-blind)
#807434
Tritanopia (blue-blind)
#876B65
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e7331;
/* rgb */ color: rgb(126, 115, 49);
/* oklch */ color: oklch(55.2% 0.088 99.9);
Tailwind
colors: {
  custom: {
    50: '#a69b6c',
    500: '#7e7331',
    950: '#000000',
  },
}
SCSS
$custom: #7e7331;
$custom-light: #a69b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7331",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 51.429,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.55151,
    "c": 0.08752,
    "h": 99.9
  },
  "luminance": 0.16919
}

Semantic roles & 50–950 ramp

primary
#7E7331
secondary
#606BAB
accent
#66D454
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #7E7331

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

Preview Lab → · Contrast checker → · Palette generator →

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