#7D8718#7D8718

#7D8718 is a mid, vivid yellow. Relative luminance 0.218; 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#7D8718
RGBrgb(125, 135, 24)
HSLhsl(65, 70%, 31%)
HSVhsv(65, 82%, 53%)
CMYKcmyk(7.4%, 0%, 82.2%, 47.1%)
CIE-LABlab(53.77, -17.42, 52.97)
CIE-LCHlch(53.77, 55.76, 108.21°)
OKLaboklab(59.55% -0.0537 0.1151)
OKLCHoklch(59.55% 0.127 115)
XYZxyz(17.2868, 21.7542, 4.1523)
Luminance0.2175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8718 #221887
analogous
#875918 #7D8718 #458718
triadic
#7D8718 #187D87 #87187D
tetradic
#7D8718 #188759 #221887 #871845
square
#7D8718 #188759 #221887 #871845
split-complementary
#7D8718 #184587 #591887
monochromatic
#1D1F06 #4D530F #7D8718 #ADBB21 #CEDC3D

Accessibility & contrast

On white

3.92
#7D8718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8718#FFFFFF#000000##000000
##7D87181.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8718;
/* rgb */ color: rgb(125, 135, 24);
/* oklch */ color: oklch(59.5% 0.127 115.0);
Tailwind
colors: {
  custom: {
    50: '#a6a961',
    500: '#7d8718',
    950: '#000000',
  },
}
SCSS
$custom: #7d8718;
$custom-light: #a6a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8718",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 65.405,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59547,
    "c": 0.127,
    "h": 115
  },
  "luminance": 0.21754
}

Semantic roles & 50–950 ramp

primary
#7D8718
secondary
#4B40BB
accent
#3BED4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D8718

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

Preview Lab → · Contrast checker → · Palette generator →

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