#A8A42F#A8A42F

#A8A42F is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.1% C 0.134 H 107.4°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#A8A42F
RGBrgb(168, 164, 47)
HSLhsl(58, 56%, 42%)
HSVhsv(58, 72%, 66%)
CMYKcmyk(0%, 2.4%, 72%, 34.1%)
CIE-LABlab(65.81, -12.44, 57.70)
CIE-LCHlch(65.81, 59.02, 102.17°)
OKLaboklab(70.1% -0.0401 0.1278)
OKLCHoklch(70.1% 0.134 107.4)
XYZxyz(29.9381, 35.0820, 7.8833)
Luminance0.3508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A42F #2F33A8
analogous
#A8682F #A8A42F #6FA82F
triadic
#A8A42F #2FA8A4 #A42FA8
tetradic
#A8A42F #2FA868 #2F33A8 #A82F6F
square
#A8A42F #2FA868 #2F33A8 #A82F6F
split-complementary
#A8A42F #2F6FA8 #682FA8
monochromatic
#484714 #787522 #A8A42F #CCC848 #D9D678

Accessibility & contrast

On white

2.62
#A8A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#A8A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A42F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A42F#FFFFFF#000000##000000
##A8A42F1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E1A
Deuteranopia (green-blind)
#B4A237
Tritanopia (blue-blind)
#B4998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a42f;
/* rgb */ color: rgb(168, 164, 47);
/* oklch */ color: oklch(70.1% 0.134 107.4);
Tailwind
colors: {
  custom: {
    50: '#c5be70',
    500: '#a8a42f',
    950: '#000000',
  },
}
SCSS
$custom: #a8a42f;
$custom-light: #c5be70;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a42f",
  "rgb": {
    "r": 168,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 58.017,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70101,
    "c": 0.13395,
    "h": 107.4
  },
  "luminance": 0.35081
}

Semantic roles & 50–950 ramp

primary
#A8A42F
secondary
#7174C1
accent
#4DE048
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A8A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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