#A5A229#A5A229

#A5A229 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.3% C 0.136 H 108.0°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#A5A229
RGBrgb(165, 162, 41)
HSLhsl(59, 60%, 40%)
HSVhsv(59, 75%, 65%)
CMYKcmyk(0%, 1.8%, 75.2%, 35.3%)
CIE-LABlab(64.96, -13.00, 58.94)
CIE-LCHlch(64.96, 60.35, 102.44°)
OKLaboklab(69.35% -0.0421 0.1294)
OKLCHoklch(69.35% 0.136 108)
XYZxyz(28.8387, 34.0010, 7.1411)
Luminance0.3400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5A229 #292CA5
analogous
#A56429 #A5A229 #6AA529
triadic
#A5A229 #29A5A2 #A229A5
tetradic
#A5A229 #29A564 #292CA5 #A5296A
square
#A5A229 #29A564 #292CA5 #A5296A
split-complementary
#A5A229 #296AA5 #6429A5
monochromatic
#434211 #74721D #A5A229 #CFCB3D #DBD86E

Accessibility & contrast

On white

2.69
#A5A229 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#A5A229 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5A229
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5A229#FFFFFF#000000##000000
##A5A2291.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B0E
Deuteranopia (green-blind)
#B2A033
Tritanopia (blue-blind)
#B1978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a5a229;
/* rgb */ color: rgb(165, 162, 41);
/* oklch */ color: oklch(69.3% 0.136 108.0);
Tailwind
colors: {
  custom: {
    50: '#c3bd6c',
    500: '#a5a229',
    950: '#000000',
  },
}
SCSS
$custom: #a5a229;
$custom-light: #c3bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a5a229",
  "rgb": {
    "r": 165,
    "g": 162,
    "b": 41
  },
  "hsl": {
    "h": 58.548,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6935,
    "c": 0.1361,
    "h": 108
  },
  "luminance": 0.34
}

Semantic roles & 50–950 ramp

primary
#A5A229
secondary
#686AC2
accent
#48E344
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5A229

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

Preview Lab → · Contrast checker → · Palette generator →

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