#7D8528#7D8528

#7D8528 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.2% C 0.115 H 114.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7D8528
RGBrgb(125, 133, 40)
HSLhsl(65, 54%, 34%)
HSVhsv(65, 70%, 52%)
CMYKcmyk(6%, 0%, 69.9%, 47.8%)
CIE-LABlab(53.26, -15.58, 46.82)
CIE-LCHlch(53.26, 49.34, 108.41°)
OKLaboklab(59.18% -0.0471 0.105)
OKLCHoklch(59.18% 0.115 114.2)
XYZxyz(17.2284, 21.2886, 5.2086)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8528 #302885
analogous
#855F28 #7D8528 #4F8528
triadic
#7D8528 #287D85 #85287D
tetradic
#7D8528 #28855F #302885 #85284F
square
#7D8528 #28855F #302885 #85284F
split-complementary
#7D8528 #284F85 #5F2885
monochromatic
#25270C #51561A #7D8528 #A9B436 #C3CD5A

Accessibility & contrast

On white

3.99
#7D8528 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#7D8528 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8528
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8528#FFFFFF#000000##000000
##7D85281.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1A
Deuteranopia (green-blind)
#8E802F
Tritanopia (blue-blind)
#857D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d8528;
/* rgb */ color: rgb(125, 133, 40);
/* oklch */ color: oklch(59.2% 0.115 114.2);
Tailwind
colors: {
  custom: {
    50: '#a5a868',
    500: '#7d8528',
    950: '#000000',
  },
}
SCSS
$custom: #7d8528;
$custom-light: #a5a868;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8528",
  "rgb": {
    "r": 125,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 65.161,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59175,
    "c": 0.11509,
    "h": 114.2
  },
  "luminance": 0.21288
}

Semantic roles & 50–950 ramp

primary
#7D8528
secondary
#5E56B3
accent
#4BDD57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8528

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

Preview Lab → · Contrast checker → · Palette generator →

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