#7E7220#7E7220

#7E7220 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.101 H 100.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E7220
RGBrgb(126, 114, 32)
HSLhsl(52, 59%, 31%)
HSVhsv(52, 75%, 49%)
CMYKcmyk(0%, 9.5%, 74.6%, 50.6%)
CIE-LABlab(47.72, -5.16, 44.61)
CIE-LCHlch(47.72, 44.91, 96.60°)
OKLaboklab(54.76% -0.0187 0.0988)
OKLCHoklch(54.76% 0.101 100.7)
XYZxyz(14.8829, 16.5752, 3.7816)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7220 #202C7E
analogous
#7E4320 #7E7220 #5B7E20
triadic
#7E7220 #207E72 #72207E
tetradic
#7E7220 #207E43 #202C7E #7E205B
square
#7E7220 #207E43 #202C7E #7E205B
split-complementary
#7E7220 #205B7E #43207E
monochromatic
#1C1A07 #4D4614 #7E7220 #AF9E2C #D0BF48

Accessibility & contrast

On white

4.87
#7E7220 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E7220 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7220
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7220#FFFFFF#000000##FFFFFF
##7E72201.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F13
Deuteranopia (green-blind)
#817325
Tritanopia (blue-blind)
#886962
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7220;
/* rgb */ color: rgb(126, 114, 32);
/* oklch */ color: oklch(54.8% 0.101 100.7);
Tailwind
colors: {
  custom: {
    50: '#a69a61',
    500: '#7e7220',
    950: '#000000',
  },
}
SCSS
$custom: #7e7220;
$custom-light: #a69a61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7220",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 32
  },
  "hsl": {
    "h": 52.34,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54756,
    "c": 0.1006,
    "h": 100.7
  },
  "luminance": 0.16575
}

Semantic roles & 50–950 ramp

primary
#7E7220
secondary
#4956B1
accent
#59E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7220

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

Preview Lab → · Contrast checker → · Palette generator →

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