#A8A840#A8A840

#A8A840 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.1% C 0.126 H 109.2°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#A8A840
RGBrgb(168, 168, 64)
HSLhsl(60, 45%, 45%)
HSVhsv(60, 62%, 66%)
CMYKcmyk(0%, 0%, 61.9%, 34.1%)
CIE-LABlab(67.05, -13.52, 52.07)
CIE-LCHlch(67.05, 53.80, 104.56°)
OKLaboklab(71.13% -0.0414 0.1187)
OKLCHoklch(71.13% 0.126 109.2)
XYZxyz(31.0774, 36.7011, 10.2965)
Luminance0.3670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A840 #4040A8
analogous
#A87440 #A8A840 #74A840
triadic
#A8A840 #40A8A8 #A840A8
tetradic
#A8A840 #40A874 #4040A8 #A84074
square
#A8A840 #40A874 #4040A8 #A84074
split-complementary
#A8A840 #4074A8 #7440A8
monochromatic
#4F4F1E #7C7C2F #A8A840 #C3C362 #D4D48E

Accessibility & contrast

On white

2.52
#A8A840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#A8A840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A840
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A840#FFFFFF#000000##000000
##A8A8401.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A133
Deuteranopia (green-blind)
#B6A546
Tritanopia (blue-blind)
#B39E92
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #a8a840;
/* rgb */ color: rgb(168, 168, 64);
/* oklch */ color: oklch(71.1% 0.126 109.2);
Tailwind
colors: {
  custom: {
    50: '#c4c17a',
    500: '#a8a840',
    950: '#000000',
  },
}
SCSS
$custom: #a8a840;
$custom-light: #c4c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a840",
  "rgb": {
    "r": 168,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7113,
    "c": 0.12573,
    "h": 109.2
  },
  "luminance": 0.367
}

Semantic roles & 50–950 ramp

primary
#A8A840
secondary
#8585BF
accent
#53D553
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A840

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

Preview Lab → · Contrast checker → · Palette generator →

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