#A2A227#A2A227

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

Color values

HEX#A2A227
RGBrgb(162, 162, 39)
HSLhsl(60, 61%, 39%)
HSVhsv(60, 76%, 64%)
CMYKcmyk(0%, 0%, 75.9%, 36.5%)
CIE-LABlab(64.70, -14.41, 59.27)
CIE-LCHlch(64.70, 61.00, 103.66°)
OKLaboklab(69.07% -0.046 0.1299)
OKLCHoklch(69.07% 0.138 109.5)
XYZxyz(28.1879, 33.6694, 6.9331)
Luminance0.3367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A227 #2727A2
analogous
#A26527 #A2A227 #65A227
triadic
#A2A227 #27A2A2 #A227A2
tetradic
#A2A227 #27A265 #2727A2 #A22765
square
#A2A227 #27A265 #2727A2 #A22765
split-complementary
#A2A227 #2765A2 #6527A2
monochromatic
#3F3F0F #71711B #A2A227 #CFCF37 #DBDB69

Accessibility & contrast

On white

2.72
#A2A227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#A2A227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A227
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A227#FFFFFF#000000##000000
##A2A2271.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2a227;
/* rgb */ color: rgb(162, 162, 39);
/* oklch */ color: oklch(69.1% 0.138 109.5);
Tailwind
colors: {
  custom: {
    50: '#c1bd6b',
    500: '#a2a227',
    950: '#000000',
  },
}
SCSS
$custom: #a2a227;
$custom-light: #c1bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a227",
  "rgb": {
    "r": 162,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 60,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69074,
    "c": 0.1378,
    "h": 109.5
  },
  "luminance": 0.33669
}

Semantic roles & 50–950 ramp

primary
#A2A227
secondary
#6464C1
accent
#43E443
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A2A227

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

Preview Lab → · Contrast checker → · Palette generator →

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