#7E7528#7E7528

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

Color values

HEX#7E7528
RGBrgb(126, 117, 40)
HSLhsl(54, 52%, 33%)
HSVhsv(54, 68%, 49%)
CMYKcmyk(0%, 7.1%, 68.3%, 50.6%)
CIE-LABlab(48.65, -6.39, 42.11)
CIE-LCHlch(48.65, 42.60, 98.62°)
OKLaboklab(55.52% -0.0213 0.0951)
OKLCHoklch(55.52% 0.097 102.6)
XYZxyz(15.3491, 17.3120, 4.5401)
Luminance0.1731 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7528 #28317E
analogous
#7E4A28 #7E7528 #5C7E28
triadic
#7E7528 #287E75 #75287E
tetradic
#7E7528 #287E4A #28317E #7E285C
square
#7E7528 #287E4A #28317E #7E285C
split-complementary
#7E7528 #285C7E #4A287E
monochromatic
#211F0B #504A19 #7E7528 #ACA037 #CABE57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7528#FFFFFF#000000##FFFFFF
##7E75281.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)
#80711E
Deuteranopia (green-blind)
#82752D
Tritanopia (blue-blind)
#886D65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e7528;
/* rgb */ color: rgb(126, 117, 40);
/* oklch */ color: oklch(55.5% 0.097 102.6);
Tailwind
colors: {
  custom: {
    50: '#a69c66',
    500: '#7e7528',
    950: '#000000',
  },
}
SCSS
$custom: #7e7528;
$custom-light: #a69c66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7528",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 40
  },
  "hsl": {
    "h": 53.721,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55515,
    "c": 0.09741,
    "h": 102.6
  },
  "luminance": 0.17311
}

Semantic roles & 50–950 ramp

primary
#7E7528
secondary
#535DAF
accent
#5BDB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7E7528

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

Preview Lab → · Contrast checker → · Palette generator →

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