#A9A227#A9A227

#A9A227 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.7% C 0.137 H 106.1°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A9A227
RGBrgb(169, 162, 39)
HSLhsl(57, 63%, 41%)
HSVhsv(57, 77%, 66%)
CMYKcmyk(0%, 4.1%, 76.9%, 33.7%)
CIE-LABlab(65.30, -11.32, 60.04)
CIE-LCHlch(65.30, 61.10, 100.67°)
OKLaboklab(69.7% -0.0378 0.1312)
OKLCHoklch(69.7% 0.137 106.1)
XYZxyz(29.6500, 34.4233, 7.0016)
Luminance0.3442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A9A227 #272EA9
analogous
#A96127 #A9A227 #6FA927
triadic
#A9A227 #27A9A2 #A227A9
tetradic
#A9A227 #27A961 #272EA9 #A9276F
square
#A9A227 #27A961 #272EA9 #A9276F
split-complementary
#A9A227 #276FA9 #6127A9
monochromatic
#464310 #77721C #A9A227 #D2CA3B #DDD76D

Accessibility & contrast

On white

2.66
#A9A227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#A9A227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A9A227
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A9A227#FFFFFF#000000##000000
##A9A2271.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C08
Deuteranopia (green-blind)
#B3A131
Tritanopia (blue-blind)
#B6978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a9a227;
/* rgb */ color: rgb(169, 162, 39);
/* oklch */ color: oklch(69.7% 0.137 106.1);
Tailwind
colors: {
  custom: {
    50: '#c6bd6c',
    500: '#a9a227',
    950: '#000000',
  },
}
SCSS
$custom: #a9a227;
$custom-light: #c6bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a9a227",
  "rgb": {
    "r": 169,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 56.769,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.69696,
    "c": 0.13656,
    "h": 106.1
  },
  "luminance": 0.34422
}

Semantic roles & 50–950 ramp

primary
#A9A227
secondary
#686DC4
accent
#4BE642
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A9A227

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

Preview Lab → · Contrast checker → · Palette generator →

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