#A8A340#A8A340

#A8A340 is a light, vivid yellow. Relative luminance 0.349; OKLCH L 70.0% C 0.120 H 106.4°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#A8A340
RGBrgb(168, 163, 64)
HSLhsl(57, 45%, 45%)
HSVhsv(57, 62%, 66%)
CMYKcmyk(0%, 3%, 61.9%, 34.1%)
CIE-LABlab(65.66, -10.91, 50.58)
CIE-LCHlch(65.66, 51.74, 102.18°)
OKLaboklab(70.02% -0.034 0.1156)
OKLCHoklch(70.02% 0.12 106.4)
XYZxyz(30.1721, 34.8904, 9.9947)
Luminance0.3489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A340 #4045A8
analogous
#A86F40 #A8A340 #79A840
triadic
#A8A340 #40A8A3 #A340A8
tetradic
#A8A340 #40A86F #4045A8 #A84079
square
#A8A340 #40A86F #4045A8 #A84079
split-complementary
#A8A340 #4079A8 #6F40A8
monochromatic
#4F4D1E #7C782F #A8A340 #C3BF62 #D4D18E

Accessibility & contrast

On white

2.63
#A8A340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#A8A340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A340
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A340#FFFFFF#000000##000000
##A8A3401.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D34
Deuteranopia (green-blind)
#B2A146
Tritanopia (blue-blind)
#B4998E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a8a340;
/* rgb */ color: rgb(168, 163, 64);
/* oklch */ color: oklch(70.0% 0.120 106.4);
Tailwind
colors: {
  custom: {
    50: '#c4be79',
    500: '#a8a340',
    950: '#000000',
  },
}
SCSS
$custom: #a8a340;
$custom-light: #c4be79;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a340",
  "rgb": {
    "r": 168,
    "g": 163,
    "b": 64
  },
  "hsl": {
    "h": 57.115,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.70023,
    "c": 0.12045,
    "h": 106.4
  },
  "luminance": 0.34889
}

Semantic roles & 50–950 ramp

primary
#A8A340
secondary
#8587BF
accent
#59D553
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A340

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

Preview Lab → · Contrast checker → · Palette generator →

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