#7D8018#7D8018

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

Color values

HEX#7D8018
RGBrgb(125, 128, 24)
HSLhsl(62, 68%, 30%)
HSVhsv(62, 81%, 50%)
CMYKcmyk(2.3%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.68, -13.71, 51.12)
CIE-LCHlch(51.68, 52.93, 105.01°)
OKLaboklab(57.88% -0.0434 0.1112)
OKLCHoklch(57.88% 0.119 111.3)
XYZxyz(16.3421, 19.8647, 3.8374)
Luminance0.1986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8018 #1B1880
analogous
#804F18 #7D8018 #498018
triadic
#7D8018 #187D80 #80187D
tetradic
#7D8018 #18804F #1B1880 #801849
square
#7D8018 #18804F #1B1880 #801849
split-complementary
#7D8018 #184980 #4F1880
monochromatic
#191A05 #4B4C0E #7D8018 #AFB422 #D5DA39

Accessibility & contrast

On white

4.22
#7D8018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8018#FFFFFF#000000##000000
##7D80181.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8018;
/* rgb */ color: rgb(125, 128, 24);
/* oklch */ color: oklch(57.9% 0.119 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a45f',
    500: '#7d8018',
    950: '#000000',
  },
}
SCSS
$custom: #7d8018;
$custom-light: #a6a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8018",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 61.731,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57879,
    "c": 0.11933,
    "h": 111.3
  },
  "luminance": 0.19864
}

Semantic roles & 50–950 ramp

primary
#7D8018
secondary
#4340B4
accent
#3DEB42
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8018

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

Preview Lab → · Contrast checker → · Palette generator →

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