#A8A940#A8A940

#A8A940 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.4% C 0.127 H 109.7°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#A8A940
RGBrgb(168, 169, 64)
HSLhsl(61, 45%, 46%)
HSVhsv(61, 62%, 66%)
CMYKcmyk(0.6%, 0%, 62.1%, 33.7%)
CIE-LABlab(67.33, -14.04, 52.37)
CIE-LCHlch(67.33, 54.22, 105.01°)
OKLaboklab(71.35% -0.0428 0.1194)
OKLCHoklch(71.35% 0.127 109.7)
XYZxyz(31.2628, 37.0718, 10.3582)
Luminance0.3707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A940 #4140A9
analogous
#A97540 #A8A940 #74A940
triadic
#A8A940 #40A8A9 #A940A8
tetradic
#A8A940 #40A975 #4140A9 #A94074
square
#A8A940 #40A975 #4140A9 #A94074
split-complementary
#A8A940 #4074A9 #7540A9
monochromatic
#50501E #7C7D2F #A8A940 #C3C462 #D4D58F

Accessibility & contrast

On white

2.50
#A8A940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#A8A940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A940
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A940#FFFFFF#000000##000000
##A8A9401.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A233
Deuteranopia (green-blind)
#B7A646
Tritanopia (blue-blind)
#B39F93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a8a940;
/* rgb */ color: rgb(168, 169, 64);
/* oklch */ color: oklch(71.4% 0.127 109.7);
Tailwind
colors: {
  custom: {
    50: '#c4c27a',
    500: '#a8a940',
    950: '#000000',
  },
}
SCSS
$custom: #a8a940;
$custom-light: #c4c27a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a940",
  "rgb": {
    "r": 168,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 60.571,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71352,
    "c": 0.12681,
    "h": 109.7
  },
  "luminance": 0.37071
}

Semantic roles & 50–950 ramp

primary
#A8A940
secondary
#8685C0
accent
#53D554
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A940

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

Preview Lab → · Contrast checker → · Palette generator →

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