#A5A242#A5A242

#A5A242 is a light, moderate yellow. Relative luminance 0.342; OKLCH L 69.6% C 0.118 H 107.4°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#A5A242
RGBrgb(165, 162, 66)
HSLhsl(58, 43%, 45%)
HSVhsv(58, 60%, 65%)
CMYKcmyk(0%, 1.8%, 60%, 35.3%)
CIE-LABlab(65.15, -11.55, 49.04)
CIE-LCHlch(65.15, 50.38, 103.25°)
OKLaboklab(69.56% -0.0354 0.1127)
OKLCHoklch(69.56% 0.118 107.4)
XYZxyz(29.4217, 34.2342, 10.2112)
Luminance0.3423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A242 #4245A5
analogous
#A57142 #A5A242 #76A542
triadic
#A5A242 #42A5A2 #A242A5
tetradic
#A5A242 #42A571 #4245A5 #A54276
square
#A5A242 #42A571 #4245A5 #A54276
split-complementary
#A5A242 #4276A5 #7142A5
monochromatic
#4E4C1F #797731 #A5A242 #C1BE63 #D2D08F

Accessibility & contrast

On white

2.68
#A5A242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#A5A242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A242
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A242#FFFFFF#000000##000000
##A5A2421.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C37
Deuteranopia (green-blind)
#B0A047
Tritanopia (blue-blind)
#B0988D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a242;
/* rgb */ color: rgb(165, 162, 66);
/* oklch */ color: oklch(69.6% 0.118 107.4);
Tailwind
colors: {
  custom: {
    50: '#c2bd7a',
    500: '#a5a242',
    950: '#000000',
  },
}
SCSS
$custom: #a5a242;
$custom-light: #c2bd7a;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a242",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 58.182,
    "s": 42.857,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69556,
    "c": 0.11807,
    "h": 107.4
  },
  "luminance": 0.34233
}

Semantic roles & 50–950 ramp

primary
#A5A242
secondary
#8587BD
accent
#59D355
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A5A242

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

Preview Lab → · Contrast checker → · Palette generator →

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