#7E7522#7E7522

#7E7522 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.102 H 103.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7E7522
RGBrgb(126, 117, 34)
HSLhsl(54, 58%, 31%)
HSVhsv(54, 73%, 49%)
CMYKcmyk(0%, 7.1%, 73%, 50.6%)
CIE-LABlab(48.60, -6.74, 44.66)
CIE-LCHlch(48.60, 45.16, 98.58°)
OKLaboklab(55.46% -0.023 0.0993)
OKLCHoklch(55.46% 0.102 103)
XYZxyz(15.2549, 17.2743, 4.0438)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7522 #222B7E
analogous
#7E4722 #7E7522 #597E22
triadic
#7E7522 #227E75 #75227E
tetradic
#7E7522 #227E47 #222B7E #7E2259
square
#7E7522 #227E47 #222B7E #7E2259
split-complementary
#7E7522 #22597E #47227E
monochromatic
#1E1B08 #4E4815 #7E7522 #AEA22F #CFC24C

Accessibility & contrast

On white

4.71
#7E7522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7E7522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7522
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7522#FFFFFF#000000##FFFFFF
##7E75221.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807115
Deuteranopia (green-blind)
#837527
Tritanopia (blue-blind)
#886D65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e7522;
/* rgb */ color: rgb(126, 117, 34);
/* oklch */ color: oklch(55.5% 0.102 103.0);
Tailwind
colors: {
  custom: {
    50: '#a69c63',
    500: '#7e7522',
    950: '#000000',
  },
}
SCSS
$custom: #7e7522;
$custom-light: #a69c63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7522",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 34
  },
  "hsl": {
    "h": 54.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55462,
    "c": 0.10197,
    "h": 103
  },
  "luminance": 0.17274
}

Semantic roles & 50–950 ramp

primary
#7E7522
secondary
#4B55B1
accent
#56E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7522

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

Preview Lab → · Contrast checker → · Palette generator →

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