#A4A228#A4A228

#A4A228 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#A4A228
RGBrgb(164, 162, 40)
HSLhsl(59, 61%, 40%)
HSVhsv(59, 76%, 64%)
CMYKcmyk(0%, 1.2%, 75.6%, 35.7%)
CIE-LABlab(64.87, -13.48, 59.16)
CIE-LCHlch(64.87, 60.68, 102.84°)
OKLaboklab(69.26% -0.0435 0.1298)
OKLCHoklch(69.26% 0.137 108.5)
XYZxyz(28.6143, 33.8873, 7.0407)
Luminance0.3389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A4A228 #282AA4
analogous
#A46428 #A4A228 #68A428
triadic
#A4A228 #28A4A2 #A228A4
tetradic
#A4A228 #28A464 #282AA4 #A42868
square
#A4A228 #28A464 #282AA4 #A42868
split-complementary
#A4A228 #2868A4 #6428A4
monochromatic
#424110 #73711C #A4A228 #CFCD3A #DBD96B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A4A228#FFFFFF#000000##000000
##A4A2281.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)
#B09B0B
Deuteranopia (green-blind)
#B29F32
Tritanopia (blue-blind)
#B0978B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a4a228;
/* rgb */ color: rgb(164, 162, 40);
/* oklch */ color: oklch(69.3% 0.137 108.5);
Tailwind
colors: {
  custom: {
    50: '#c3bd6c',
    500: '#a4a228',
    950: '#000000',
  },
}
SCSS
$custom: #a4a228;
$custom-light: #c3bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a4a228",
  "rgb": {
    "r": 164,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 59.032,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.69256,
    "c": 0.13684,
    "h": 108.5
  },
  "luminance": 0.33886
}

Semantic roles & 50–950 ramp

primary
#A4A228
secondary
#6668C1
accent
#46E444
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A4A228

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

Preview Lab → · Contrast checker → · Palette generator →

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