#7D8012#7D8012

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

Color values

HEX#7D8012
RGBrgb(125, 128, 18)
HSLhsl(62, 75%, 29%)
HSVhsv(62, 86%, 50%)
CMYKcmyk(2.3%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.66, -13.92, 52.79)
CIE-LCHlch(51.66, 54.60, 104.77°)
OKLaboklab(57.85% -0.0444 0.1136)
OKLCHoklch(57.85% 0.122 111.4)
XYZxyz(16.2864, 19.8424, 3.5442)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8012 #151280
analogous
#804C12 #7D8012 #468012
triadic
#7D8012 #127D80 #80127D
tetradic
#7D8012 #12804C #151280 #801246
square
#7D8012 #12804C #151280 #801246
split-complementary
#7D8012 #124680 #4C1280
monochromatic
#1A1B04 #494A0A #7D8012 #B1B61A #DCE12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7d8012;
/* rgb */ color: rgb(125, 128, 18);
/* oklch */ color: oklch(57.9% 0.122 111.4);
Tailwind
colors: {
  custom: {
    50: '#a6a45d',
    500: '#7d8012',
    950: '#000000',
  },
}
SCSS
$custom: #7d8012;
$custom-light: #a6a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8012",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 61.636,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5785,
    "c": 0.122,
    "h": 111.4
  },
  "luminance": 0.19842
}

Semantic roles & 50–950 ramp

primary
#7D8012
secondary
#3C38B6
accent
#36F23B
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8012

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

Preview Lab → · Contrast checker → · Palette generator →

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