#A5A040#A5A040

#A5A040 is a light, moderate yellow. Relative luminance 0.335; OKLCH L 69.1% C 0.118 H 106.3°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#A5A040
RGBrgb(165, 160, 64)
HSLhsl(57, 44%, 45%)
HSVhsv(57, 61%, 65%)
CMYKcmyk(0%, 3%, 61.2%, 35.3%)
CIE-LABlab(64.57, -10.64, 49.32)
CIE-LCHlch(64.57, 50.46, 102.17°)
OKLaboklab(69.09% -0.033 0.113)
OKLCHoklch(69.09% 0.118 106.3)
XYZxyz(29.0142, 33.5120, 9.7896)
Luminance0.3351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A040 #4045A5
analogous
#A56E40 #A5A040 #77A540
triadic
#A5A040 #40A5A0 #A040A5
tetradic
#A5A040 #40A56E #4045A5 #A54077
square
#A5A040 #40A56E #4045A5 #A54077
split-complementary
#A5A040 #4077A5 #6E40A5
monochromatic
#4D4A1E #79752F #A5A040 #C2BD61 #D3CF8D

Accessibility & contrast

On white

2.73
#A5A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#A5A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A040
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A040#FFFFFF#000000##000000
##A5A0401.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A35
Deuteranopia (green-blind)
#AF9E45
Tritanopia (blue-blind)
#B0968C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a5a040;
/* rgb */ color: rgb(165, 160, 64);
/* oklch */ color: oklch(69.1% 0.118 106.3);
Tailwind
colors: {
  custom: {
    50: '#c2bb79',
    500: '#a5a040',
    950: '#000000',
  },
}
SCSS
$custom: #a5a040;
$custom-light: #c2bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a040",
  "rgb": {
    "r": 165,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 57.03,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69093,
    "c": 0.11769,
    "h": 106.3
  },
  "luminance": 0.33511
}

Semantic roles & 50–950 ramp

primary
#A5A040
secondary
#8386BE
accent
#5AD454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #A5A040

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

Preview Lab → · Contrast checker → · Palette generator →

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