#7E7121#7E7121

#7E7121 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.099 H 99.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7E7121
RGBrgb(126, 113, 33)
HSLhsl(52, 58%, 31%)
HSVhsv(52, 74%, 49%)
CMYKcmyk(0%, 10.3%, 73.8%, 50.6%)
CIE-LABlab(47.44, -4.54, 43.92)
CIE-LCHlch(47.44, 44.16, 95.90°)
OKLaboklab(54.54% -0.0169 0.0976)
OKLCHoklch(54.54% 0.099 99.8)
XYZxyz(14.7845, 16.3564, 3.8169)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7121 #212E7E
analogous
#7E4221 #7E7121 #5C7E21
triadic
#7E7121 #217E71 #71217E
tetradic
#7E7121 #217E42 #212E7E #7E215C
square
#7E7121 #217E42 #212E7E #7E215C
split-complementary
#7E7121 #215C7E #42217E
monochromatic
#1D1A08 #4E4614 #7E7121 #AE9C2E #D0BD4A

Accessibility & contrast

On white

4.92
#7E7121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7E7121 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7121
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7121#FFFFFF#000000##FFFFFF
##7E71211.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E14
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#886861
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e7121;
/* rgb */ color: rgb(126, 113, 33);
/* oklch */ color: oklch(54.5% 0.099 99.8);
Tailwind
colors: {
  custom: {
    50: '#a69962',
    500: '#7e7121',
    950: '#000000',
  },
}
SCSS
$custom: #7e7121;
$custom-light: #a69962;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7121",
  "rgb": {
    "r": 126,
    "g": 113,
    "b": 33
  },
  "hsl": {
    "h": 51.613,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54535,
    "c": 0.09904,
    "h": 99.8
  },
  "luminance": 0.16356
}

Semantic roles & 50–950 ramp

primary
#7E7121
secondary
#4A58B1
accent
#5CE246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7E7121

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

Preview Lab → · Contrast checker → · Palette generator →

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