#A8A140#A8A140

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

Color values

HEX#A8A140
RGBrgb(168, 161, 64)
HSLhsl(56, 45%, 45%)
HSVhsv(56, 62%, 66%)
CMYKcmyk(0%, 4.2%, 61.9%, 34.1%)
CIE-LABlab(65.11, -9.86, 49.98)
CIE-LCHlch(65.11, 50.94, 101.16°)
OKLaboklab(69.58% -0.031 0.1143)
OKLCHoklch(69.58% 0.118 105.2)
XYZxyz(29.8198, 34.1858, 9.8772)
Luminance0.3418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A140 #4047A8
analogous
#A86D40 #A8A140 #7BA840
triadic
#A8A140 #40A8A1 #A140A8
tetradic
#A8A140 #40A86D #4047A8 #A8407B
square
#A8A140 #40A86D #4047A8 #A8407B
split-complementary
#A8A140 #407BA8 #6D40A8
monochromatic
#4F4C1E #7C772F #A8A140 #C3BD62 #D4CF8E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A140#FFFFFF#000000##000000
##A8A1401.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)
#AE9C35
Deuteranopia (green-blind)
#B1A045
Tritanopia (blue-blind)
#B4978C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a140;
/* rgb */ color: rgb(168, 161, 64);
/* oklch */ color: oklch(69.6% 0.118 105.2);
Tailwind
colors: {
  custom: {
    50: '#c4bc79',
    500: '#a8a140',
    950: '#000000',
  },
}
SCSS
$custom: #a8a140;
$custom-light: #c4bc79;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a140",
  "rgb": {
    "r": 168,
    "g": 161,
    "b": 64
  },
  "hsl": {
    "h": 55.962,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.69582,
    "c": 0.11842,
    "h": 105.2
  },
  "luminance": 0.34185
}

Semantic roles & 50–950 ramp

primary
#A8A140
secondary
#8589BF
accent
#5CD553
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A140

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

Preview Lab → · Contrast checker → · Palette generator →

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