#7C802B#7C802B

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

Color values

HEX#7C802B
RGBrgb(124, 128, 43)
HSLhsl(63, 50%, 34%)
HSVhsv(63, 66%, 50%)
CMYKcmyk(3.1%, 0%, 66.4%, 49.8%)
CIE-LABlab(51.72, -13.16, 43.93)
CIE-LCHlch(51.72, 45.86, 106.68°)
OKLaboklab(57.93% -0.0399 0.0995)
OKLCHoklch(57.93% 0.107 111.9)
XYZxyz(16.4679, 19.8982, 5.2583)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C802B #2F2B80
analogous
#80592B #7C802B #51802B
triadic
#7C802B #2B7C80 #802B7C
tetradic
#7C802B #2B8059 #2F2B80 #802B51
square
#7C802B #2B8059 #2F2B80 #802B51
split-complementary
#7C802B #2B5180 #592B80
monochromatic
#23240C #50521C #7C802B #A8AE3A #C3C95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C802B#FFFFFF#000000##000000
##7C802B1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c802b;
/* rgb */ color: rgb(124, 128, 43);
/* oklch */ color: oklch(57.9% 0.107 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a469',
    500: '#7c802b',
    950: '#000000',
  },
}
SCSS
$custom: #7c802b;
$custom-light: #a4a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7c802b",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 62.824,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57927,
    "c": 0.10717,
    "h": 111.9
  },
  "luminance": 0.19898
}

Semantic roles & 50–950 ramp

primary
#7C802B
secondary
#5C58AE
accent
#4FD955
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7C802B

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

Preview Lab → · Contrast checker → · Palette generator →

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