#7D8015#7D8015

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

Color values

HEX#7D8015
RGBrgb(125, 128, 21)
HSLhsl(62, 72%, 29%)
HSVhsv(62, 84%, 50%)
CMYKcmyk(2.3%, 0%, 83.6%, 49.8%)
CIE-LABlab(51.67, -13.82, 52.00)
CIE-LCHlch(51.67, 53.80, 104.88°)
OKLaboklab(57.86% -0.044 0.1125)
OKLCHoklch(57.86% 0.121 111.4)
XYZxyz(16.3126, 19.8529, 3.6820)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8015 #181580
analogous
#804E15 #7D8015 #488015
triadic
#7D8015 #157D80 #80157D
tetradic
#7D8015 #15804E #181580 #801548
square
#7D8015 #15804E #181580 #801548
split-complementary
#7D8015 #154880 #4E1580
monochromatic
#1A1A04 #4A4B0C #7D8015 #B0B51E #D9DD32

Accessibility & contrast

On white

4.23
#7D8015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8015#FFFFFF#000000##000000
##7D80151.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8015;
/* rgb */ color: rgb(125, 128, 21);
/* oklch */ color: oklch(57.9% 0.121 111.4);
Tailwind
colors: {
  custom: {
    50: '#a6a45e',
    500: '#7d8015',
    950: '#000000',
  },
}
SCSS
$custom: #7d8015;
$custom-light: #a6a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8015",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 61.682,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57864,
    "c": 0.12075,
    "h": 111.4
  },
  "luminance": 0.19852
}

Semantic roles & 50–950 ramp

primary
#7D8015
secondary
#3F3CB5
accent
#39EF3E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8015

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

Preview Lab → · Contrast checker → · Palette generator →

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