#A5A240#A5A240

#A5A240 is a light, moderate yellow. Relative luminance 0.342; OKLCH L 69.5% C 0.120 H 107.5°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#A5A240
RGBrgb(165, 162, 64)
HSLhsl(58, 44%, 45%)
HSVhsv(58, 61%, 65%)
CMYKcmyk(0%, 1.8%, 61.2%, 35.3%)
CIE-LABlab(65.13, -11.69, 49.93)
CIE-LCHlch(65.13, 51.28, 103.18°)
OKLaboklab(69.54% -0.036 0.1143)
OKLCHoklch(69.54% 0.12 107.5)
XYZxyz(29.3637, 34.2110, 9.9061)
Luminance0.3421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A240 #4043A5
analogous
#A57040 #A5A240 #75A540
triadic
#A5A240 #40A5A2 #A240A5
tetradic
#A5A240 #40A570 #4043A5 #A54075
square
#A5A240 #40A570 #4043A5 #A54075
split-complementary
#A5A240 #4075A5 #7040A5
monochromatic
#4D4B1E #79772F #A5A240 #C2BF61 #D3D18D

Accessibility & contrast

On white

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

On black

7.84
#A5A240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A240
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A240#FFFFFF#000000##000000
##A5A2401.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a5a240;
/* rgb */ color: rgb(165, 162, 64);
/* oklch */ color: oklch(69.5% 0.120 107.5);
Tailwind
colors: {
  custom: {
    50: '#c2bd79',
    500: '#a5a240',
    950: '#000000',
  },
}
SCSS
$custom: #a5a240;
$custom-light: #c2bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a240",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 58.218,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69536,
    "c": 0.11978,
    "h": 107.5
  },
  "luminance": 0.3421
}

Semantic roles & 50–950 ramp

primary
#A5A240
secondary
#8385BE
accent
#58D454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A5A240

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

Preview Lab → · Contrast checker → · Palette generator →

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