#A7A42F#A7A42F

#A7A42F is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.0% C 0.134 H 107.9°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#A7A42F
RGBrgb(167, 164, 47)
HSLhsl(59, 56%, 42%)
HSVhsv(59, 72%, 65%)
CMYKcmyk(0%, 1.8%, 71.9%, 34.5%)
CIE-LABlab(65.73, -12.88, 57.59)
CIE-LCHlch(65.73, 59.01, 102.61°)
OKLaboklab(70.01% -0.0413 0.1276)
OKLCHoklch(70.01% 0.134 107.9)
XYZxyz(29.7260, 34.9726, 7.8733)
Luminance0.3497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A42F #2F32A7
analogous
#A7682F #A7A42F #6EA72F
triadic
#A7A42F #2FA7A4 #A42FA7
tetradic
#A7A42F #2FA768 #2F32A7 #A72F6E
square
#A7A42F #2FA768 #2F32A7 #A72F6E
split-complementary
#A7A42F #2F6EA7 #682FA7
monochromatic
#474614 #777522 #A7A42F #CBC848 #D9D678

Accessibility & contrast

On white

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

On black

7.99
#A7A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A42F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A42F#FFFFFF#000000##000000
##A7A42F1.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D1A
Deuteranopia (green-blind)
#B4A238
Tritanopia (blue-blind)
#B3998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a7a42f;
/* rgb */ color: rgb(167, 164, 47);
/* oklch */ color: oklch(70.0% 0.134 107.9);
Tailwind
colors: {
  custom: {
    50: '#c4be70',
    500: '#a7a42f',
    950: '#000000',
  },
}
SCSS
$custom: #a7a42f;
$custom-light: #c4be70;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a42f",
  "rgb": {
    "r": 167,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 58.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.70012,
    "c": 0.13412,
    "h": 107.9
  },
  "luminance": 0.34972
}

Semantic roles & 50–950 ramp

primary
#A7A42F
secondary
#7173C1
accent
#4CDF48
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A7A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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