#7E7722#7E7722

#7E7722 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.9% C 0.104 H 104.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E7722
RGBrgb(126, 119, 34)
HSLhsl(55, 58%, 31%)
HSVhsv(55, 73%, 49%)
CMYKcmyk(0%, 5.6%, 73%, 50.6%)
CIE-LABlab(49.19, -7.86, 45.23)
CIE-LCHlch(49.19, 45.91, 99.86°)
OKLaboklab(55.93% -0.0261 0.1006)
OKLCHoklch(55.93% 0.104 104.6)
XYZxyz(15.4904, 17.7454, 4.1223)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7722 #22297E
analogous
#7E4922 #7E7722 #577E22
triadic
#7E7722 #227E77 #77227E
tetradic
#7E7722 #227E49 #22297E #7E2257
square
#7E7722 #227E49 #22297E #7E2257
split-complementary
#7E7722 #22577E #49227E
monochromatic
#1E1C08 #4E4915 #7E7722 #AEA52F #CFC54C

Accessibility & contrast

On white

4.62
#7E7722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7E7722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7722
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7722#FFFFFF#000000##FFFFFF
##7E77221.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827314
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7722;
/* rgb */ color: rgb(126, 119, 34);
/* oklch */ color: oklch(55.9% 0.104 104.6);
Tailwind
colors: {
  custom: {
    50: '#a69e63',
    500: '#7e7722',
    950: '#000000',
  },
}
SCSS
$custom: #7e7722;
$custom-light: #a69e63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7722",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 34
  },
  "hsl": {
    "h": 55.435,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55925,
    "c": 0.10389,
    "h": 104.6
  },
  "luminance": 0.17745
}

Semantic roles & 50–950 ramp

primary
#7E7722
secondary
#4B53B1
accent
#53E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E7722

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

Preview Lab → · Contrast checker → · Palette generator →

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