#7D8028#7D8028

#7D8028 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.109 H 111.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7D8028
RGBrgb(125, 128, 40)
HSLhsl(62, 52%, 33%)
HSVhsv(62, 69%, 50%)
CMYKcmyk(2.3%, 0%, 68.8%, 49.8%)
CIE-LABlab(51.78, -12.91, 45.31)
CIE-LCHlch(51.78, 47.12, 105.90°)
OKLaboklab(57.99% -0.0396 0.1018)
OKLCHoklch(57.99% 0.109 111.3)
XYZxyz(16.5601, 19.9519, 4.9858)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8028 #2B2880
analogous
#805728 #7D8028 #518028
triadic
#7D8028 #287D80 #80287D
tetradic
#7D8028 #288057 #2B2880 #802851
square
#7D8028 #288057 #2B2880 #802851
split-complementary
#7D8028 #285180 #572880
monochromatic
#22230B #4F5119 #7D8028 #ABAF37 #C7CB58

Accessibility & contrast

On white

4.21
#7D8028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7D8028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8028
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8028#FFFFFF#000000##000000
##7D80281.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1B
Deuteranopia (green-blind)
#8B7D2E
Tritanopia (blue-blind)
#86786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d8028;
/* rgb */ color: rgb(125, 128, 40);
/* oklch */ color: oklch(58.0% 0.109 111.3);
Tailwind
colors: {
  custom: {
    50: '#a5a467',
    500: '#7d8028',
    950: '#000000',
  },
}
SCSS
$custom: #7d8028;
$custom-light: #a5a467;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8028",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 62.045,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57989,
    "c": 0.10928,
    "h": 111.3
  },
  "luminance": 0.19952
}

Semantic roles & 50–950 ramp

primary
#7D8028
secondary
#5754B0
accent
#4CDC51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8028

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

Preview Lab → · Contrast checker → · Palette generator →

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