#7E7520#7E7520

#7E7520 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.4% C 0.103 H 103.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7E7520
RGBrgb(126, 117, 32)
HSLhsl(54, 59%, 31%)
HSVhsv(54, 75%, 49%)
CMYKcmyk(0%, 7.1%, 74.6%, 50.6%)
CIE-LABlab(48.59, -6.85, 45.46)
CIE-LCHlch(48.59, 45.97, 98.57°)
OKLaboklab(55.45% -0.0235 0.1006)
OKLCHoklch(55.45% 0.103 103.1)
XYZxyz(15.2268, 17.2631, 3.8963)
Luminance0.1726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7520 #20297E
analogous
#7E4620 #7E7520 #587E20
triadic
#7E7520 #207E75 #75207E
tetradic
#7E7520 #207E46 #20297E #7E2058
square
#7E7520 #207E46 #20297E #7E2058
split-complementary
#7E7520 #20587E #46207E
monochromatic
#1C1A07 #4D4814 #7E7520 #AFA22C #D0C348

Accessibility & contrast

On white

4.72
#7E7520 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E7520
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7520#FFFFFF#000000##FFFFFF
##7E75201.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#837526
Tritanopia (blue-blind)
#886C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e7520;
/* rgb */ color: rgb(126, 117, 32);
/* oklch */ color: oklch(55.4% 0.103 103.1);
Tailwind
colors: {
  custom: {
    50: '#a69c62',
    500: '#7e7520',
    950: '#000000',
  },
}
SCSS
$custom: #7e7520;
$custom-light: #a69c62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7520",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 32
  },
  "hsl": {
    "h": 54.255,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.10335,
    "h": 103.1
  },
  "luminance": 0.17262
}

Semantic roles & 50–950 ramp

primary
#7E7520
secondary
#4953B1
accent
#54E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7E7520

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

Preview Lab → · Contrast checker → · Palette generator →

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