#7D8418#7D8418

#7D8418 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.124 H 113.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7D8418
RGBrgb(125, 132, 24)
HSLhsl(64, 69%, 31%)
HSVhsv(64, 82%, 52%)
CMYKcmyk(5.3%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.87, -15.84, 52.18)
CIE-LCHlch(52.87, 54.53, 106.89°)
OKLaboklab(58.83% -0.0493 0.1134)
OKLCHoklch(58.83% 0.124 113.5)
XYZxyz(16.8741, 20.9288, 4.0147)
Luminance0.2093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8418 #1F1884
analogous
#845518 #7D8418 #478418
triadic
#7D8418 #187D84 #84187D
tetradic
#7D8418 #188455 #1F1884 #841847
square
#7D8418 #188455 #1F1884 #841847
split-complementary
#7D8418 #184784 #551884
monochromatic
#1B1C05 #4C500F #7D8418 #AEB821 #D1DB3B

Accessibility & contrast

On white

4.05
#7D8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7D8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8418
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8418#FFFFFF#000000##000000
##7D84181.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#867C70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7d8418;
/* rgb */ color: rgb(125, 132, 24);
/* oklch */ color: oklch(58.8% 0.124 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a760',
    500: '#7d8418',
    950: '#000000',
  },
}
SCSS
$custom: #7d8418;
$custom-light: #a6a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8418",
  "rgb": {
    "r": 125,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 63.889,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5883,
    "c": 0.12366,
    "h": 113.5
  },
  "luminance": 0.20928
}

Semantic roles & 50–950 ramp

primary
#7D8418
secondary
#4840B8
accent
#3CEC47
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8418

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

Preview Lab → · Contrast checker → · Palette generator →

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