#A79842#A79842

#A79842 is a light, moderate yellow. Relative luminance 0.311; OKLCH L 67.5% C 0.108 H 99.5°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#A79842
RGBrgb(167, 152, 66)
HSLhsl(51, 43%, 46%)
HSVhsv(51, 60%, 65%)
CMYKcmyk(0%, 9%, 60.5%, 34.5%)
CIE-LABlab(62.56, -5.36, 46.23)
CIE-LCHlch(62.56, 46.54, 96.61°)
OKLaboklab(67.55% -0.0178 0.1066)
OKLCHoklch(67.55% 0.108 99.5)
XYZxyz(28.1490, 31.0665, 9.6669)
Luminance0.3106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A79842 #4251A7
analogous
#A76542 #A79842 #83A742
triadic
#A79842 #42A798 #9842A7
tetradic
#A79842 #42A765 #4251A7 #A74283
square
#A79842 #42A765 #4251A7 #A74283
split-complementary
#A79842 #4283A7 #6542A7
monochromatic
#4F481F #7B7031 #A79842 #C2B464 #D3C990

Accessibility & contrast

On white

2.91
#A79842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#A79842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A79842
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A79842#FFFFFF#000000##000000
##A798421.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59439
Deuteranopia (green-blind)
#AA9A46
Tritanopia (blue-blind)
#B38E85
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #a79842;
/* rgb */ color: rgb(167, 152, 66);
/* oklch */ color: oklch(67.5% 0.108 99.5);
Tailwind
colors: {
  custom: {
    50: '#c4b67a',
    500: '#a79842',
    950: '#000000',
  },
}
SCSS
$custom: #a79842;
$custom-light: #c4b67a;
$custom-dark: #000000;
JSON
{
  "hex": "#a79842",
  "rgb": {
    "r": 167,
    "g": 152,
    "b": 66
  },
  "hsl": {
    "h": 51.089,
    "s": 43.348,
    "l": 45.686
  },
  "oklch": {
    "l": 0.67545,
    "c": 0.10809,
    "h": 99.5
  },
  "luminance": 0.31065
}

Semantic roles & 50–950 ramp

primary
#A79842
secondary
#868FBE
accent
#67D355
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #A79842

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

Preview Lab → · Contrast checker → · Palette generator →

#A79842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva