#7A802B#7A802B

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

Color values

HEX#7A802B
RGBrgb(122, 128, 43)
HSLhsl(64, 50%, 34%)
HSVhsv(64, 66%, 50%)
CMYKcmyk(4.7%, 0%, 66.4%, 49.8%)
CIE-LABlab(51.55, -14.06, 43.70)
CIE-LCHlch(51.55, 45.91, 107.84°)
OKLaboklab(57.75% -0.0423 0.099)
OKLCHoklch(57.75% 0.108 113.2)
XYZxyz(16.1817, 19.7507, 5.2449)
Luminance0.1975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A802B #312B80
analogous
#805B2B #7A802B #4F802B
triadic
#7A802B #2B7A80 #802B7A
tetradic
#7A802B #2B805B #312B80 #802B4F
square
#7A802B #2B805B #312B80 #802B4F
split-complementary
#7A802B #2B4F80 #5B2B80
monochromatic
#23240C #4E521C #7A802B #A6AE3A #C1C95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A802B#FFFFFF#000000##000000
##7A802B1.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)
#897A20
Deuteranopia (green-blind)
#897C31
Tritanopia (blue-blind)
#82786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7a802b;
/* rgb */ color: rgb(122, 128, 43);
/* oklch */ color: oklch(57.8% 0.108 113.2);
Tailwind
colors: {
  custom: {
    50: '#a3a469',
    500: '#7a802b',
    950: '#000000',
  },
}
SCSS
$custom: #7a802b;
$custom-light: #a3a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7a802b",
  "rgb": {
    "r": 122,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 64.235,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57752,
    "c": 0.10771,
    "h": 113.2
  },
  "luminance": 0.1975
}

Semantic roles & 50–950 ramp

primary
#7A802B
secondary
#5E58AE
accent
#4FD958
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7A802B

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

Preview Lab → · Contrast checker → · Palette generator →

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