#7E7122#7E7122

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

Color values

HEX#7E7122
RGBrgb(126, 113, 34)
HSLhsl(52, 58%, 31%)
HSVhsv(52, 73%, 49%)
CMYKcmyk(0%, 10.3%, 73%, 50.6%)
CIE-LABlab(47.45, -4.49, 43.51)
CIE-LCHlch(47.45, 43.74, 95.89°)
OKLaboklab(54.54% -0.0166 0.0969)
OKLCHoklch(54.54% 0.098 99.7)
XYZxyz(14.7987, 16.3621, 3.8918)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7122 #222F7E
analogous
#7E4322 #7E7122 #5D7E22
triadic
#7E7122 #227E71 #71227E
tetradic
#7E7122 #227E43 #222F7E #7E225D
square
#7E7122 #227E43 #222F7E #7E225D
split-complementary
#7E7122 #225D7E #43227E
monochromatic
#1E1B08 #4E4615 #7E7122 #AE9C2F #CFBC4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7122#FFFFFF#000000##FFFFFF
##7E71221.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)
#7C6E16
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#886861
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7122;
/* rgb */ color: rgb(126, 113, 34);
/* oklch */ color: oklch(54.5% 0.098 99.7);
Tailwind
colors: {
  custom: {
    50: '#a69962',
    500: '#7e7122',
    950: '#000000',
  },
}
SCSS
$custom: #7e7122;
$custom-light: #a69962;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7122",
  "rgb": {
    "r": 126,
    "g": 113,
    "b": 34
  },
  "hsl": {
    "h": 51.522,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54543,
    "c": 0.09832,
    "h": 99.7
  },
  "luminance": 0.16361
}

Semantic roles & 50–950 ramp

primary
#7E7122
secondary
#4B5AB1
accent
#5DE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D05
muted
#7F7E7A

Preview Lab

Preview with #7E7122

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

Preview Lab → · Contrast checker → · Palette generator →

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