#A8A142#A8A142

#A8A142 is a light, moderate yellow. Relative luminance 0.342; OKLCH L 69.6% C 0.117 H 105.1°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#A8A142
RGBrgb(168, 161, 66)
HSLhsl(56, 44%, 46%)
HSVhsv(56, 61%, 66%)
CMYKcmyk(0%, 4.2%, 60.7%, 34.1%)
CIE-LABlab(65.13, -9.72, 49.10)
CIE-LCHlch(65.13, 50.05, 101.20°)
OKLaboklab(69.6% -0.0304 0.1127)
OKLCHoklch(69.6% 0.117 105.1)
XYZxyz(29.8777, 34.2089, 10.1823)
Luminance0.3421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A142 #4249A8
analogous
#A86E42 #A8A142 #7CA842
triadic
#A8A142 #42A8A1 #A142A8
tetradic
#A8A142 #42A86E #4249A8 #A8427C
square
#A8A142 #42A86E #4249A8 #A8427C
split-complementary
#A8A142 #427CA8 #6E42A8
monochromatic
#504D1F #7C7731 #A8A142 #C2BC65 #D4CF91

Accessibility & contrast

On white

2.68
#A8A142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#A8A142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A142
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A142#FFFFFF#000000##000000
##A8A1421.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C37
Deuteranopia (green-blind)
#B1A047
Tritanopia (blue-blind)
#B4978D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a142;
/* rgb */ color: rgb(168, 161, 66);
/* oklch */ color: oklch(69.6% 0.117 105.1);
Tailwind
colors: {
  custom: {
    50: '#c4bc7a',
    500: '#a8a142',
    950: '#000000',
  },
}
SCSS
$custom: #a8a142;
$custom-light: #c4bc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a142",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 66
  },
  "hsl": {
    "h": 55.882,
    "s": 43.59,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69603,
    "c": 0.11671,
    "h": 105.1
  },
  "luminance": 0.34208
}

Semantic roles & 50–950 ramp

primary
#A8A142
secondary
#878BBF
accent
#5DD354
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A142

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

Preview Lab → · Contrast checker → · Palette generator →

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