#7D8717#7D8717

#7D8717 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.127 H 115.0°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7D8717
RGBrgb(125, 135, 23)
HSLhsl(65, 71%, 31%)
HSVhsv(65, 83%, 53%)
CMYKcmyk(7.4%, 0%, 83%, 47.1%)
CIE-LABlab(53.76, -17.46, 53.25)
CIE-LCHlch(53.76, 56.04, 108.15°)
OKLaboklab(59.54% -0.0539 0.1155)
OKLCHoklch(59.54% 0.127 115)
XYZxyz(17.2766, 21.7501, 4.0985)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8717 #211787
analogous
#875917 #7D8717 #458717
triadic
#7D8717 #177D87 #87177D
tetradic
#7D8717 #178759 #211787 #871745
square
#7D8717 #178759 #211787 #871745
split-complementary
#7D8717 #174587 #591787
monochromatic
#1C1E05 #4D530E #7D8717 #ADBB20 #CFDE3B

Accessibility & contrast

On white

3.93
#7D8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7D8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8717
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8717#FFFFFF#000000##000000
##7D87171.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918122
Tritanopia (blue-blind)
#867F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d8717;
/* rgb */ color: rgb(125, 135, 23);
/* oklch */ color: oklch(59.5% 0.127 115.0);
Tailwind
colors: {
  custom: {
    50: '#a6a960',
    500: '#7d8717',
    950: '#000000',
  },
}
SCSS
$custom: #7d8717;
$custom-light: #a6a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8717",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 65.357,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59542,
    "c": 0.12746,
    "h": 115
  },
  "luminance": 0.2175
}

Semantic roles & 50–950 ramp

primary
#7D8717
secondary
#4A3FBB
accent
#3AEE4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D8717

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

Preview Lab → · Contrast checker → · Palette generator →

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