#7D8517#7D8517

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

Color values

HEX#7D8517
RGBrgb(125, 133, 23)
HSLhsl(64, 71%, 31%)
HSVhsv(64, 83%, 52%)
CMYKcmyk(6%, 0%, 82.7%, 47.8%)
CIE-LABlab(53.16, -16.41, 52.73)
CIE-LCHlch(53.16, 55.22, 107.29°)
OKLaboklab(59.06% -0.051 0.1144)
OKLCHoklch(59.06% 0.125 114)
XYZxyz(17.0002, 21.1972, 4.0064)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8517 #1F1785
analogous
#855617 #7D8517 #468517
triadic
#7D8517 #177D85 #85177D
tetradic
#7D8517 #178556 #1F1785 #851746
square
#7D8517 #178556 #1F1785 #851746
split-complementary
#7D8517 #174685 #561785
monochromatic
#1B1D05 #4C510E #7D8517 #AEB920 #D1DD3A

Accessibility & contrast

On white

4.01
#7D8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7D8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8517
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8517#FFFFFF#000000##000000
##7D85171.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#867D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d8517;
/* rgb */ color: rgb(125, 133, 23);
/* oklch */ color: oklch(59.1% 0.125 114.0);
Tailwind
colors: {
  custom: {
    50: '#a6a860',
    500: '#7d8517',
    950: '#000000',
  },
}
SCSS
$custom: #7d8517;
$custom-light: #a6a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8517",
  "rgb": {
    "r": 125,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 64.364,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.12524,
    "h": 114
  },
  "luminance": 0.21197
}

Semantic roles & 50–950 ramp

primary
#7D8517
secondary
#483FB9
accent
#3BED48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8517

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

Preview Lab → · Contrast checker → · Palette generator →

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