#7E7221#7E7221

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

Color values

HEX#7E7221
RGBrgb(126, 114, 33)
HSLhsl(52, 58%, 31%)
HSVhsv(52, 74%, 49%)
CMYKcmyk(0%, 9.5%, 73.8%, 50.6%)
CIE-LABlab(47.73, -5.11, 44.21)
CIE-LCHlch(47.73, 44.50, 96.59°)
OKLaboklab(54.76% -0.0185 0.0982)
OKLCHoklch(54.76% 0.1 100.7)
XYZxyz(14.8967, 16.5807, 3.8543)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7221 #212D7E
analogous
#7E4321 #7E7221 #5B7E21
triadic
#7E7221 #217E72 #72217E
tetradic
#7E7221 #217E43 #212D7E #7E215B
square
#7E7221 #217E43 #212D7E #7E215B
split-complementary
#7E7221 #215B7E #43217E
monochromatic
#1D1A08 #4E4614 #7E7221 #AE9E2E #D0BE4A

Accessibility & contrast

On white

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

On black

4.32
#7E7221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E7221#FFFFFF#000000##FFFFFF
##7E72211.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7221;
/* rgb */ color: rgb(126, 114, 33);
/* oklch */ color: oklch(54.8% 0.100 100.7);
Tailwind
colors: {
  custom: {
    50: '#a69a62',
    500: '#7e7221',
    950: '#000000',
  },
}
SCSS
$custom: #7e7221;
$custom-light: #a69a62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7221",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 52.258,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54764,
    "c": 0.09991,
    "h": 100.7
  },
  "luminance": 0.1658
}

Semantic roles & 50–950 ramp

primary
#7E7221
secondary
#4A57B1
accent
#5AE246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7221

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

Preview Lab → · Contrast checker → · Palette generator →

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