#A2A228#A2A228

#A2A228 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.1% C 0.137 H 109.5°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#A2A228
RGBrgb(162, 162, 40)
HSLhsl(60, 60%, 40%)
HSVhsv(60, 75%, 64%)
CMYKcmyk(0%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.70, -14.36, 58.94)
CIE-LCHlch(64.70, 60.67, 103.69°)
OKLaboklab(69.08% -0.0458 0.1294)
OKLCHoklch(69.08% 0.137 109.5)
XYZxyz(28.2047, 33.6761, 7.0215)
Luminance0.3367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A228 #2828A2
analogous
#A26528 #A2A228 #65A228
triadic
#A2A228 #28A2A2 #A228A2
tetradic
#A2A228 #28A265 #2828A2 #A22865
square
#A2A228 #28A265 #2828A2 #A22865
split-complementary
#A2A228 #2865A2 #6528A2
monochromatic
#404010 #71711C #A2A228 #CECE39 #DADA6A

Accessibility & contrast

On white

2.71
#A2A228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#A2A228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A228
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A228#FFFFFF#000000##000000
##A2A2281.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0C
Deuteranopia (green-blind)
#B19F32
Tritanopia (blue-blind)
#AE978B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a2a228;
/* rgb */ color: rgb(162, 162, 40);
/* oklch */ color: oklch(69.1% 0.137 109.5);
Tailwind
colors: {
  custom: {
    50: '#c1bd6c',
    500: '#a2a228',
    950: '#000000',
  },
}
SCSS
$custom: #a2a228;
$custom-light: #c1bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a228",
  "rgb": {
    "r": 162,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 60,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6908,
    "c": 0.13724,
    "h": 109.5
  },
  "luminance": 0.33675
}

Semantic roles & 50–950 ramp

primary
#A2A228
secondary
#6565C1
accent
#44E444
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A2A228

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

Preview Lab → · Contrast checker → · Palette generator →

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