#7E7022#7E7022

#7E7022 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.3% C 0.097 H 98.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7E7022
RGBrgb(126, 112, 34)
HSLhsl(51, 58%, 31%)
HSVhsv(51, 73%, 49%)
CMYKcmyk(0%, 11.1%, 73%, 50.6%)
CIE-LABlab(47.16, -3.92, 43.22)
CIE-LCHlch(47.16, 43.40, 95.18°)
OKLaboklab(54.31% -0.015 0.0963)
OKLCHoklch(54.31% 0.097 98.8)
XYZxyz(14.6878, 16.1402, 3.8548)
Luminance0.1614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7022 #22307E
analogous
#7E4222 #7E7022 #5E7E22
triadic
#7E7022 #227E70 #70227E
tetradic
#7E7022 #227E42 #22307E #7E225E
square
#7E7022 #227E42 #22307E #7E225E
split-complementary
#7E7022 #225E7E #42227E
monochromatic
#1E1A08 #4E4515 #7E7022 #AE9B2F #CFBB4C

Accessibility & contrast

On white

4.97
#7E7022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7E7022 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7022
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7022#FFFFFF#000000##FFFFFF
##7E70221.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D16
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#886760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e7022;
/* rgb */ color: rgb(126, 112, 34);
/* oklch */ color: oklch(54.3% 0.097 98.8);
Tailwind
colors: {
  custom: {
    50: '#a69862',
    500: '#7e7022',
    950: '#000000',
  },
}
SCSS
$custom: #7e7022;
$custom-light: #a69862;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7022",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 34
  },
  "hsl": {
    "h": 50.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54314,
    "c": 0.09746,
    "h": 98.8
  },
  "luminance": 0.16139
}

Semantic roles & 50–950 ramp

primary
#7E7022
secondary
#4B5BB1
accent
#5EE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7E7022

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

Preview Lab → · Contrast checker → · Palette generator →

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