#A1A228#A1A228

#A1A228 is a light, vivid yellow. Relative luminance 0.336; OKLCH L 69.0% C 0.137 H 110.0°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#A1A228
RGBrgb(161, 162, 40)
HSLhsl(60, 60%, 40%)
HSVhsv(60, 75%, 64%)
CMYKcmyk(0.6%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.62, -14.80, 58.84)
CIE-LCHlch(64.62, 60.67, 104.12°)
OKLaboklab(68.99% -0.047 0.1292)
OKLCHoklch(68.99% 0.137 110)
XYZxyz(28.0023, 33.5717, 7.0120)
Luminance0.3357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1A228 #2928A2
analogous
#A26628 #A1A228 #64A228
triadic
#A1A228 #28A1A2 #A228A1
tetradic
#A1A228 #28A266 #2928A2 #A22864
square
#A1A228 #28A266 #2928A2 #A22864
split-complementary
#A1A228 #2864A2 #6628A2
monochromatic
#3F4010 #70711C #A1A228 #CDCE39 #D9DA6A

Accessibility & contrast

On white

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

On black

7.71
#A1A228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1A228
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1A228#FFFFFF#000000##000000
##A1A2281.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a1a228;
/* rgb */ color: rgb(161, 162, 40);
/* oklch */ color: oklch(69.0% 0.137 110.0);
Tailwind
colors: {
  custom: {
    50: '#c0bd6c',
    500: '#a1a228',
    950: '#000000',
  },
}
SCSS
$custom: #a1a228;
$custom-light: #c0bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#a1a228",
  "rgb": {
    "r": 161,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 60.492,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68993,
    "c": 0.13746,
    "h": 110
  },
  "luminance": 0.33571
}

Semantic roles & 50–950 ramp

primary
#A1A228
secondary
#6665C1
accent
#44E446
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A1A228

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

Preview Lab → · Contrast checker → · Palette generator →

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