#A4A227#A4A227

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

Color values

HEX#A4A227
RGBrgb(164, 162, 39)
HSLhsl(59, 62%, 40%)
HSVhsv(59, 76%, 64%)
CMYKcmyk(0%, 1.2%, 76.2%, 35.7%)
CIE-LABlab(64.87, -13.53, 59.49)
CIE-LCHlch(64.87, 61.01, 102.81°)
OKLaboklab(69.25% -0.0437 0.1303)
OKLCHoklch(69.25% 0.137 108.5)
XYZxyz(28.5975, 33.8806, 6.9523)
Luminance0.3388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A4A227 #2729A4
analogous
#A46427 #A4A227 #68A427
triadic
#A4A227 #27A4A2 #A227A4
tetradic
#A4A227 #27A464 #2729A4 #A42768
square
#A4A227 #27A464 #2729A4 #A42768
split-complementary
#A4A227 #2768A4 #6427A4
monochromatic
#41400F #73711B #A4A227 #D0CD38 #DCDA6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A4A227#FFFFFF#000000##000000
##A4A2271.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)
#B09B08
Deuteranopia (green-blind)
#B29F31
Tritanopia (blue-blind)
#B0978B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a4a227;
/* rgb */ color: rgb(164, 162, 39);
/* oklch */ color: oklch(69.3% 0.137 108.5);
Tailwind
colors: {
  custom: {
    50: '#c3bd6c',
    500: '#a4a227',
    950: '#000000',
  },
}
SCSS
$custom: #a4a227;
$custom-light: #c3bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a4a227",
  "rgb": {
    "r": 164,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 59.04,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.6925,
    "c": 0.13739,
    "h": 108.5
  },
  "luminance": 0.3388
}

Semantic roles & 50–950 ramp

primary
#A4A227
secondary
#6567C2
accent
#46E543
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A4A227

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

Preview Lab → · Contrast checker → · Palette generator →

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