#7E7524#7E7524

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

Color values

HEX#7E7524
RGBrgb(126, 117, 36)
HSLhsl(54, 56%, 32%)
HSVhsv(54, 71%, 49%)
CMYKcmyk(0%, 7.1%, 71.4%, 50.6%)
CIE-LABlab(48.62, -6.63, 43.83)
CIE-LCHlch(48.62, 44.33, 98.60°)
OKLaboklab(55.48% -0.0224 0.098)
OKLCHoklch(55.48% 0.101 102.9)
XYZxyz(15.2846, 17.2862, 4.2002)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7524 #242D7E
analogous
#7E4824 #7E7524 #5A7E24
triadic
#7E7524 #247E75 #75247E
tetradic
#7E7524 #247E48 #242D7E #7E245A
square
#7E7524 #247E48 #242D7E #7E245A
split-complementary
#7E7524 #245A7E #48247E
monochromatic
#1F1D09 #4E4916 #7E7524 #AEA132 #CDC050

Accessibility & contrast

On white

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

On black

4.46
#7E7524 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E7524#FFFFFF#000000##FFFFFF
##7E75241.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7524;
/* rgb */ color: rgb(126, 117, 36);
/* oklch */ color: oklch(55.5% 0.101 102.9);
Tailwind
colors: {
  custom: {
    50: '#a69c64',
    500: '#7e7524',
    950: '#000000',
  },
}
SCSS
$custom: #7e7524;
$custom-light: #a69c64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7524",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 36
  },
  "hsl": {
    "h": 54,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55479,
    "c": 0.10052,
    "h": 102.9
  },
  "luminance": 0.17286
}

Semantic roles & 50–950 ramp

primary
#7E7524
secondary
#4E57B0
accent
#58DF49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E7524

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

Preview Lab → · Contrast checker → · Palette generator →

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