#A5A142#A5A142

#A5A142 is a light, moderate yellow. Relative luminance 0.339; OKLCH L 69.3% C 0.117 H 106.8°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#A5A142
RGBrgb(165, 161, 66)
HSLhsl(58, 43%, 45%)
HSVhsv(58, 60%, 65%)
CMYKcmyk(0%, 2.4%, 60%, 35.3%)
CIE-LABlab(64.87, -11.02, 48.74)
CIE-LCHlch(64.87, 49.97, 102.74°)
OKLaboklab(69.34% -0.0339 0.112)
OKLCHoklch(69.34% 0.117 106.8)
XYZxyz(29.2462, 33.8833, 10.1527)
Luminance0.3388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A142 #4246A5
analogous
#A57042 #A5A142 #77A542
triadic
#A5A142 #42A5A1 #A142A5
tetradic
#A5A142 #42A570 #4246A5 #A54277
square
#A5A142 #42A570 #4246A5 #A54277
split-complementary
#A5A142 #4277A5 #7042A5
monochromatic
#4E4C1F #797631 #A5A142 #C1BD63 #D2D08F

Accessibility & contrast

On white

2.70
#A5A142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#A5A142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A142
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A142#FFFFFF#000000##000000
##A5A1421.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B37
Deuteranopia (green-blind)
#B09F47
Tritanopia (blue-blind)
#B0978D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a5a142;
/* rgb */ color: rgb(165, 161, 66);
/* oklch */ color: oklch(69.3% 0.117 106.8);
Tailwind
colors: {
  custom: {
    50: '#c2bc7a',
    500: '#a5a142',
    950: '#000000',
  },
}
SCSS
$custom: #a5a142;
$custom-light: #c2bc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a142",
  "rgb": {
    "r": 165,
    "g": 161,
    "b": 66
  },
  "hsl": {
    "h": 57.576,
    "s": 42.857,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69335,
    "c": 0.11701,
    "h": 106.8
  },
  "luminance": 0.33882
}

Semantic roles & 50–950 ramp

primary
#A5A142
secondary
#8588BD
accent
#5AD355
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A5A142

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

Preview Lab → · Contrast checker → · Palette generator →

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