#A8A342#A8A342

#A8A342 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.0% C 0.119 H 106.3°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#A8A342
RGBrgb(168, 163, 66)
HSLhsl(57, 44%, 46%)
HSVhsv(57, 61%, 66%)
CMYKcmyk(0%, 3%, 60.7%, 34.1%)
CIE-LABlab(65.68, -10.77, 49.70)
CIE-LCHlch(65.68, 50.86, 102.23°)
OKLaboklab(70.04% -0.0334 0.114)
OKLCHoklch(70.04% 0.119 106.3)
XYZxyz(30.2300, 34.9135, 10.2998)
Luminance0.3491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A342 #4247A8
analogous
#A87042 #A8A342 #7AA842
triadic
#A8A342 #42A8A3 #A342A8
tetradic
#A8A342 #42A870 #4247A8 #A8427A
square
#A8A342 #42A870 #4247A8 #A8427A
split-complementary
#A8A342 #427AA8 #7042A8
monochromatic
#504E1F #7C7831 #A8A342 #C2BE65 #D4D091

Accessibility & contrast

On white

2.63
#A8A342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#A8A342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A342
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A342#FFFFFF#000000##000000
##A8A3421.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D37
Deuteranopia (green-blind)
#B2A147
Tritanopia (blue-blind)
#B4998E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a342;
/* rgb */ color: rgb(168, 163, 66);
/* oklch */ color: oklch(70.0% 0.119 106.3);
Tailwind
colors: {
  custom: {
    50: '#c4be7a',
    500: '#a8a342',
    950: '#000000',
  },
}
SCSS
$custom: #a8a342;
$custom-light: #c4be7a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a342",
  "rgb": {
    "r": 168,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 57.059,
    "s": 43.59,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70043,
    "c": 0.11876,
    "h": 106.3
  },
  "luminance": 0.34913
}

Semantic roles & 50–950 ramp

primary
#A8A342
secondary
#878ABF
accent
#5BD354
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A342

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

Preview Lab → · Contrast checker → · Palette generator →

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