#7D8017#7D8017

#7D8017 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.120 H 111.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D8017
RGBrgb(125, 128, 23)
HSLhsl(62, 70%, 30%)
HSVhsv(62, 82%, 50%)
CMYKcmyk(2.3%, 0%, 82%, 49.8%)
CIE-LABlab(51.68, -13.75, 51.42)
CIE-LCHlch(51.68, 53.23, 104.97°)
OKLaboklab(57.87% -0.0436 0.1116)
OKLCHoklch(57.87% 0.12 111.3)
XYZxyz(16.3319, 19.8606, 3.7836)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8017 #1A1780
analogous
#804E17 #7D8017 #498017
triadic
#7D8017 #177D80 #80177D
tetradic
#7D8017 #17804E #1A1780 #801749
square
#7D8017 #17804E #1A1780 #801749
split-complementary
#7D8017 #174980 #4E1780
monochromatic
#191A05 #4A4C0E #7D8017 #B0B420 #D6DB36

Accessibility & contrast

On white

4.22
#7D8017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7D8017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8017
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8017#FFFFFF#000000##000000
##7D80171.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#86776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d8017;
/* rgb */ color: rgb(125, 128, 23);
/* oklch */ color: oklch(57.9% 0.120 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a45f',
    500: '#7d8017',
    950: '#000000',
  },
}
SCSS
$custom: #7d8017;
$custom-light: #a6a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8017",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 61.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57873,
    "c": 0.11982,
    "h": 111.3
  },
  "luminance": 0.1986
}

Semantic roles & 50–950 ramp

primary
#7D8017
secondary
#423EB4
accent
#3BEC41
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8017

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

Preview Lab → · Contrast checker → · Palette generator →

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