#7C802D#7C802D

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

Color values

HEX#7C802D
RGBrgb(124, 128, 45)
HSLhsl(63, 48%, 34%)
HSVhsv(63, 65%, 50%)
CMYKcmyk(3.1%, 0%, 64.8%, 49.8%)
CIE-LABlab(51.74, -13.02, 43.06)
CIE-LCHlch(51.74, 44.98, 106.83°)
OKLaboklab(57.95% -0.0393 0.0979)
OKLCHoklch(57.95% 0.106 111.9)
XYZxyz(16.5055, 19.9133, 5.4563)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C802D #312D80
analogous
#805B2D #7C802D #53802D
triadic
#7C802D #2D7C80 #802D7C
tetradic
#7C802D #2D805B #312D80 #802D53
square
#7C802D #2D805B #312D80 #802D53
split-complementary
#7C802D #2D5380 #5B2D80
monochromatic
#24250D #50531D #7C802D #A8AD3D #C2C760

Accessibility & contrast

On white

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

On black

4.98
#7C802D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C802D
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C802D#FFFFFF#000000##000000
##7C802D1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A23
Deuteranopia (green-blind)
#8A7C32
Tritanopia (blue-blind)
#84786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c802d;
/* rgb */ color: rgb(124, 128, 45);
/* oklch */ color: oklch(57.9% 0.106 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a46a',
    500: '#7c802d',
    950: '#000000',
  },
}
SCSS
$custom: #7c802d;
$custom-light: #a4a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c802d",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 62.892,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57947,
    "c": 0.10554,
    "h": 111.9
  },
  "luminance": 0.19913
}

Semantic roles & 50–950 ramp

primary
#7C802D
secondary
#5F5BAE
accent
#50D857
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C802D

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

Preview Lab → · Contrast checker → · Palette generator →

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