#A7A540#A7A540

#A7A540 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.4% C 0.123 H 108.1°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#A7A540
RGBrgb(167, 165, 64)
HSLhsl(59, 45%, 45%)
HSVhsv(59, 62%, 65%)
CMYKcmyk(0%, 1.2%, 61.7%, 34.5%)
CIE-LABlab(66.13, -12.39, 51.06)
CIE-LCHlch(66.13, 52.55, 103.64°)
OKLaboklab(70.38% -0.0381 0.1166)
OKLCHoklch(70.38% 0.123 108.1)
XYZxyz(30.3179, 35.4968, 10.1040)
Luminance0.3550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A540 #4042A7
analogous
#A77140 #A7A540 #75A740
triadic
#A7A540 #40A7A5 #A540A7
tetradic
#A7A540 #40A771 #4042A7 #A74075
square
#A7A540 #40A771 #4042A7 #A74075
split-complementary
#A7A540 #4075A7 #7140A7
monochromatic
#4F4E1E #7B792F #A7A540 #C3C162 #D4D28E

Accessibility & contrast

On white

2.59
#A7A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#A7A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A540
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A540#FFFFFF#000000##000000
##A7A5401.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F34
Deuteranopia (green-blind)
#B4A246
Tritanopia (blue-blind)
#B29B90
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a7a540;
/* rgb */ color: rgb(167, 165, 64);
/* oklch */ color: oklch(70.4% 0.123 108.1);
Tailwind
colors: {
  custom: {
    50: '#c4bf79',
    500: '#a7a540',
    950: '#000000',
  },
}
SCSS
$custom: #a7a540;
$custom-light: #c4bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a540",
  "rgb": {
    "r": 167,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 58.835,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.70377,
    "c": 0.12268,
    "h": 108.1
  },
  "luminance": 0.35496
}

Semantic roles & 50–950 ramp

primary
#A7A540
secondary
#8485BF
accent
#56D454
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A7A540

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

Preview Lab → · Contrast checker → · Palette generator →

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