#7E7231#7E7231

#7E7231 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.9% C 0.087 H 99.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E7231
RGBrgb(126, 114, 49)
HSLhsl(51, 44%, 34%)
HSVhsv(51, 61%, 49%)
CMYKcmyk(0%, 9.5%, 61.1%, 50.6%)
CIE-LABlab(47.87, -4.05, 36.97)
CIE-LCHlch(47.87, 37.19, 96.25°)
OKLaboklab(54.92% -0.0135 0.0855)
OKLCHoklch(54.92% 0.087 99)
XYZxyz(15.1765, 16.6926, 5.3277)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7231 #313D7E
analogous
#7E4C31 #7E7231 #647E31
triadic
#7E7231 #317E72 #72317E
tetradic
#7E7231 #317E4C #313D7E #7E3164
square
#7E7231 #317E4C #313D7E #7E3164
split-complementary
#7E7231 #31647E #4C317E
monochromatic
#26220F #524A20 #7E7231 #AA9A42 #C3B566

Accessibility & contrast

On white

4.84
#7E7231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7E7231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7231
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7231#FFFFFF#000000##FFFFFF
##7E72311.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7231;
/* rgb */ color: rgb(126, 114, 49);
/* oklch */ color: oklch(54.9% 0.087 99.0);
Tailwind
colors: {
  custom: {
    50: '#a69a6c',
    500: '#7e7231',
    950: '#000000',
  },
}
SCSS
$custom: #7e7231;
$custom-light: #a69a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7231",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 49
  },
  "hsl": {
    "h": 50.649,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54923,
    "c": 0.08657,
    "h": 99
  },
  "luminance": 0.16692
}

Semantic roles & 50–950 ramp

primary
#7E7231
secondary
#606CAB
accent
#68D454
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E07
muted
#7F7E7A

Preview Lab

Preview with #7E7231

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

Preview Lab → · Contrast checker → · Palette generator →

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