#A8A040#A8A040

#A8A040 is a light, moderate yellow. Relative luminance 0.338; OKLCH L 69.4% C 0.117 H 104.5°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#A8A040
RGBrgb(168, 160, 64)
HSLhsl(55, 45%, 45%)
HSVhsv(55, 62%, 66%)
CMYKcmyk(0%, 4.8%, 61.9%, 34.1%)
CIE-LABlab(64.83, -9.33, 49.68)
CIE-LCHlch(64.83, 50.55, 100.64°)
OKLaboklab(69.36% -0.0295 0.1137)
OKLCHoklch(69.36% 0.117 104.5)
XYZxyz(29.6457, 33.8377, 9.8192)
Luminance0.3384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A040 #4048A8
analogous
#A86C40 #A8A040 #7CA840
triadic
#A8A040 #40A8A0 #A040A8
tetradic
#A8A040 #40A86C #4048A8 #A8407C
square
#A8A040 #40A86C #4048A8 #A8407C
split-complementary
#A8A040 #407CA8 #6C40A8
monochromatic
#4F4C1E #7C762F #A8A040 #C3BC62 #D4CF8E

Accessibility & contrast

On white

2.70
#A8A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#A8A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A040
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A040#FFFFFF#000000##000000
##A8A0401.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9B35
Deuteranopia (green-blind)
#B09F45
Tritanopia (blue-blind)
#B4968C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a8a040;
/* rgb */ color: rgb(168, 160, 64);
/* oklch */ color: oklch(69.4% 0.117 104.5);
Tailwind
colors: {
  custom: {
    50: '#c4bb79',
    500: '#a8a040',
    950: '#000000',
  },
}
SCSS
$custom: #a8a040;
$custom-light: #c4bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a040",
  "rgb": {
    "r": 168,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 55.385,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.69363,
    "c": 0.11741,
    "h": 104.5
  },
  "luminance": 0.33837
}

Semantic roles & 50–950 ramp

primary
#A8A040
secondary
#8589BF
accent
#5DD553
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #A8A040

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

Preview Lab → · Contrast checker → · Palette generator →

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