#A7A42E#A7A42E

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

Color values

HEX#A7A42E
RGBrgb(167, 164, 46)
HSLhsl(59, 57%, 42%)
HSVhsv(59, 72%, 65%)
CMYKcmyk(0%, 1.8%, 72.5%, 34.5%)
CIE-LABlab(65.72, -12.93, 57.95)
CIE-LCHlch(65.72, 59.37, 102.58°)
OKLaboklab(70.01% -0.0415 0.1282)
OKLCHoklch(70.01% 0.135 108)
XYZxyz(29.7061, 34.9646, 7.7683)
Luminance0.3496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A42E #2E31A7
analogous
#A7672E #A7A42E #6EA72E
triadic
#A7A42E #2EA7A4 #A42EA7
tetradic
#A7A42E #2EA767 #2E31A7 #A72E6E
square
#A7A42E #2EA767 #2E31A7 #A72E6E
split-complementary
#A7A42E #2E6EA7 #672EA7
monochromatic
#474614 #777521 #A7A42E #CCC946 #D9D776

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7A42E#FFFFFF#000000##000000
##A7A42E1.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)
#B29D18
Deuteranopia (green-blind)
#B4A237
Tritanopia (blue-blind)
#B3998D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a7a42e;
/* rgb */ color: rgb(167, 164, 46);
/* oklch */ color: oklch(70.0% 0.135 108.0);
Tailwind
colors: {
  custom: {
    50: '#c5be6f',
    500: '#a7a42e',
    950: '#000000',
  },
}
SCSS
$custom: #a7a42e;
$custom-light: #c5be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a42e",
  "rgb": {
    "r": 167,
    "g": 164,
    "b": 46
  },
  "hsl": {
    "h": 58.512,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70005,
    "c": 0.13474,
    "h": 108
  },
  "luminance": 0.34964
}

Semantic roles & 50–950 ramp

primary
#A7A42E
secondary
#7072C1
accent
#4CE048
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A7A42E

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

Preview Lab → · Contrast checker → · Palette generator →

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