#7D8014#7D8014

#7D8014 is a mid, vivid yellow. Relative luminance 0.198; 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#7D8014
RGBrgb(125, 128, 20)
HSLhsl(62, 73%, 29%)
HSVhsv(62, 84%, 50%)
CMYKcmyk(2.3%, 0%, 84.4%, 49.8%)
CIE-LABlab(51.67, -13.85, 52.27)
CIE-LCHlch(51.67, 54.08, 104.84°)
OKLaboklab(57.86% -0.0441 0.1129)
OKLCHoklch(57.86% 0.121 111.4)
XYZxyz(16.3035, 19.8493, 3.6342)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8014 #171480
analogous
#804D14 #7D8014 #478014
triadic
#7D8014 #147D80 #80147D
tetradic
#7D8014 #14804D #171480 #801447
square
#7D8014 #14804D #171480 #801447
split-complementary
#7D8014 #144780 #4D1480
monochromatic
#1A1A04 #494B0C #7D8014 #B1B51C #DADF30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8014#FFFFFF#000000##000000
##7D80141.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)
#8B7C1F
Tritanopia (blue-blind)
#86776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d8014;
/* rgb */ color: rgb(125, 128, 20);
/* oklch */ color: oklch(57.9% 0.121 111.4);
Tailwind
colors: {
  custom: {
    50: '#a6a45e',
    500: '#7d8014',
    950: '#000000',
  },
}
SCSS
$custom: #7d8014;
$custom-light: #a6a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8014",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 20
  },
  "hsl": {
    "h": 61.667,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57859,
    "c": 0.12118,
    "h": 111.4
  },
  "luminance": 0.19849
}

Semantic roles & 50–950 ramp

primary
#7D8014
secondary
#3E3BB5
accent
#38F03D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8014

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

Preview Lab → · Contrast checker → · Palette generator →

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