#7D8520#7D8520

#7D8520 is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.1% C 0.120 H 114.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7D8520
RGBrgb(125, 133, 32)
HSLhsl(65, 61%, 32%)
HSVhsv(65, 76%, 52%)
CMYKcmyk(6%, 0%, 75.9%, 47.8%)
CIE-LABlab(53.21, -16.02, 49.85)
CIE-LCHlch(53.21, 52.36, 107.82°)
OKLaboklab(59.11% -0.0491 0.11)
OKLCHoklch(59.11% 0.12 114.1)
XYZxyz(17.1062, 21.2397, 4.5648)
Luminance0.2124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8520 #282085
analogous
#855A20 #7D8520 #4B8520
triadic
#7D8520 #207D85 #85207D
tetradic
#7D8520 #20855A #282085 #85204B
square
#7D8520 #20855A #282085 #85204B
split-complementary
#7D8520 #204B85 #5A2085
monochromatic
#202208 #4F5414 #7D8520 #ABB62C #C9D44C

Accessibility & contrast

On white

4.00
#7D8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#7D8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8520
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8520#FFFFFF#000000##000000
##7D85201.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0A
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#867D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d8520;
/* rgb */ color: rgb(125, 133, 32);
/* oklch */ color: oklch(59.1% 0.120 114.1);
Tailwind
colors: {
  custom: {
    50: '#a6a864',
    500: '#7d8520',
    950: '#000000',
  },
}
SCSS
$custom: #7d8520;
$custom-light: #a6a864;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8520",
  "rgb": {
    "r": 125,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 64.752,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59115,
    "c": 0.12045,
    "h": 114.1
  },
  "luminance": 0.21239
}

Semantic roles & 50–950 ramp

primary
#7D8520
secondary
#534AB7
accent
#43E450
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8520

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

Preview Lab → · Contrast checker → · Palette generator →

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