#A5A162#A5A162

#A5A162 is a light, moderate yellow. Relative luminance 0.344; OKLCH L 69.8% C 0.084 H 105.2°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#A5A162
RGBrgb(165, 161, 98)
HSLhsl(56, 27%, 52%)
HSVhsv(56, 41%, 65%)
CMYKcmyk(0%, 2.4%, 40.6%, 35.3%)
CIE-LABlab(65.26, -8.05, 33.29)
CIE-LCHlch(65.26, 34.25, 103.60°)
OKLaboklab(69.77% -0.0221 0.0811)
OKLCHoklch(69.77% 0.084 105.2)
XYZxyz(30.4670, 34.3716, 16.5824)
Luminance0.3437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A162 #6266A5
analogous
#A58062 #A5A162 #88A562
triadic
#A5A162 #62A5A1 #A162A5
tetradic
#A5A162 #62A580 #6266A5 #A56288
square
#A5A162 #62A580 #6266A5 #A56288
split-complementary
#A5A162 #6288A5 #8062A5
monochromatic
#595733 #807D4A #A5A162 #BBB889 #D2D0B0

Accessibility & contrast

On white

2.67
#A5A162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#A5A162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A162
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A162#FFFFFF#000000##000000
##A5A1621.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9D5D
Deuteranopia (green-blind)
#ADA065
Tritanopia (blue-blind)
#AE9992
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a162;
/* rgb */ color: rgb(165, 161, 98);
/* oklch */ color: oklch(69.8% 0.084 105.2);
Tailwind
colors: {
  custom: {
    50: '#c1bc8f',
    500: '#a5a162',
    950: '#000000',
  },
}
SCSS
$custom: #a5a162;
$custom-light: #c1bc8f;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a162",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 98
  },
  "hsl": {
    "h": 56.418,
    "s": 27.126,
    "l": 51.569
  },
  "oklch": {
    "l": 0.69767,
    "c": 0.08403,
    "h": 105.2
  },
  "luminance": 0.34371
}

Semantic roles & 50–950 ramp

primary
#A5A162
secondary
#A3A4C0
accent
#6AC364
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#12120C
muted
#81817D

Preview Lab

Preview with #A5A162

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

Preview Lab → · Contrast checker → · Palette generator →

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