#7A802D#7A802D

#7A802D is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.106 H 113.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7A802D
RGBrgb(122, 128, 45)
HSLhsl(64, 48%, 34%)
HSVhsv(64, 65%, 50%)
CMYKcmyk(4.7%, 0%, 64.8%, 49.8%)
CIE-LABlab(51.57, -13.92, 42.83)
CIE-LCHlch(51.57, 45.03, 108.01°)
OKLaboklab(57.77% -0.0417 0.0975)
OKLCHoklch(57.77% 0.106 113.2)
XYZxyz(16.2193, 19.7657, 5.4429)
Luminance0.1976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A802D #332D80
analogous
#805D2D #7A802D #51802D
triadic
#7A802D #2D7A80 #802D7A
tetradic
#7A802D #2D805D #332D80 #802D51
square
#7A802D #2D805D #332D80 #802D51
split-complementary
#7A802D #2D5180 #5D2D80
monochromatic
#24250D #4F531D #7A802D #A5AD3D #C0C760

Accessibility & contrast

On white

4.24
#7A802D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#7A802D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A802D
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A802D#FFFFFF#000000##000000
##7A802D1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A23
Deuteranopia (green-blind)
#897C32
Tritanopia (blue-blind)
#82796F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7a802d;
/* rgb */ color: rgb(122, 128, 45);
/* oklch */ color: oklch(57.8% 0.106 113.2);
Tailwind
colors: {
  custom: {
    50: '#a3a46a',
    500: '#7a802d',
    950: '#000000',
  },
}
SCSS
$custom: #7a802d;
$custom-light: #a3a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a802d",
  "rgb": {
    "r": 122,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 64.337,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57771,
    "c": 0.10605,
    "h": 113.2
  },
  "luminance": 0.19765
}

Semantic roles & 50–950 ramp

primary
#7A802D
secondary
#615BAE
accent
#50D85A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7A802D

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

Preview Lab → · Contrast checker → · Palette generator →

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