#A8A240#A8A240

#A8A240 is a light, moderate yellow. Relative luminance 0.345; OKLCH L 69.8% C 0.119 H 105.8°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#A8A240
RGBrgb(168, 162, 64)
HSLhsl(57, 45%, 45%)
HSVhsv(57, 62%, 66%)
CMYKcmyk(0%, 3.6%, 61.9%, 34.1%)
CIE-LABlab(65.39, -10.39, 50.28)
CIE-LCHlch(65.39, 51.34, 101.67°)
OKLaboklab(69.8% -0.0325 0.1149)
OKLCHoklch(69.8% 0.119 105.8)
XYZxyz(29.9952, 34.5367, 9.9357)
Luminance0.3454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A240 #4046A8
analogous
#A86E40 #A8A240 #7AA840
triadic
#A8A240 #40A8A2 #A240A8
tetradic
#A8A240 #40A86E #4046A8 #A8407A
square
#A8A240 #40A86E #4046A8 #A8407A
split-complementary
#A8A240 #407AA8 #6E40A8
monochromatic
#4F4D1E #7C772F #A8A240 #C3BE62 #D4D08E

Accessibility & contrast

On white

2.66
#A8A240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#A8A240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A240
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A240#FFFFFF#000000##000000
##A8A2401.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a240;
/* rgb */ color: rgb(168, 162, 64);
/* oklch */ color: oklch(69.8% 0.119 105.8);
Tailwind
colors: {
  custom: {
    50: '#c4bd79',
    500: '#a8a240',
    950: '#000000',
  },
}
SCSS
$custom: #a8a240;
$custom-light: #c4bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a240",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 56.538,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.69802,
    "c": 0.11942,
    "h": 105.8
  },
  "luminance": 0.34536
}

Semantic roles & 50–950 ramp

primary
#A8A240
secondary
#8588BF
accent
#5BD553
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A8A240

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

Preview Lab → · Contrast checker → · Palette generator →

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