#7D8817#7D8817

#7D8817 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.8% C 0.129 H 115.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7D8817
RGBrgb(125, 136, 23)
HSLhsl(66, 71%, 31%)
HSVhsv(66, 83%, 53%)
CMYKcmyk(8.1%, 0%, 83.1%, 46.7%)
CIE-LABlab(54.06, -17.98, 53.51)
CIE-LCHlch(54.06, 56.45, 108.58°)
OKLaboklab(59.78% -0.0553 0.1161)
OKLCHoklch(59.78% 0.129 115.5)
XYZxyz(17.4168, 22.0305, 4.1453)
Luminance0.2203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8817 #221788
analogous
#885A17 #7D8817 #448817
triadic
#7D8817 #177D88 #88177D
tetradic
#7D8817 #17885A #221788 #881744
square
#7D8817 #17885A #221788 #881744
split-complementary
#7D8817 #174488 #5A1788
monochromatic
#1D1F05 #4D540E #7D8817 #ADBC20 #CEDE3B

Accessibility & contrast

On white

3.88
#7D8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#7D8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8817
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8817#FFFFFF#000000##000000
##7D88171.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#868074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d8817;
/* rgb */ color: rgb(125, 136, 23);
/* oklch */ color: oklch(59.8% 0.129 115.5);
Tailwind
colors: {
  custom: {
    50: '#a6aa60',
    500: '#7d8817',
    950: '#000000',
  },
}
SCSS
$custom: #7d8817;
$custom-light: #a6aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8817",
  "rgb": {
    "r": 125,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 65.841,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59782,
    "c": 0.12858,
    "h": 115.5
  },
  "luminance": 0.2203
}

Semantic roles & 50–950 ramp

primary
#7D8817
secondary
#4B3FBC
accent
#3AEE4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7D8817

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

Preview Lab → · Contrast checker → · Palette generator →

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