#A1A227#A1A227

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

Color values

HEX#A1A227
RGBrgb(161, 162, 39)
HSLhsl(60, 61%, 39%)
HSVhsv(60, 76%, 64%)
CMYKcmyk(0.6%, 0%, 75.9%, 36.5%)
CIE-LABlab(64.62, -14.85, 59.16)
CIE-LCHlch(64.62, 61.00, 104.09°)
OKLaboklab(68.99% -0.0472 0.1297)
OKLCHoklch(68.99% 0.138 110)
XYZxyz(27.9855, 33.5650, 6.9236)
Luminance0.3356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1A227 #2827A2
analogous
#A26627 #A1A227 #64A227
triadic
#A1A227 #27A1A2 #A227A1
tetradic
#A1A227 #27A266 #2827A2 #A22764
square
#A1A227 #27A266 #2827A2 #A22764
split-complementary
#A1A227 #2764A2 #6627A2
monochromatic
#3F3F0F #70711B #A1A227 #CECF37 #DADB69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1A227#FFFFFF#000000##000000
##A1A2271.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)
#AF9B08
Deuteranopia (green-blind)
#B19E31
Tritanopia (blue-blind)
#AD978B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a1a227;
/* rgb */ color: rgb(161, 162, 39);
/* oklch */ color: oklch(69.0% 0.138 110.0);
Tailwind
colors: {
  custom: {
    50: '#c0bd6b',
    500: '#a1a227',
    950: '#000000',
  },
}
SCSS
$custom: #a1a227;
$custom-light: #c0bd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a1a227",
  "rgb": {
    "r": 161,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 60.488,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68987,
    "c": 0.13802,
    "h": 110
  },
  "luminance": 0.33564
}

Semantic roles & 50–950 ramp

primary
#A1A227
secondary
#6564C1
accent
#43E445
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A1A227

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

Preview Lab → · Contrast checker → · Palette generator →

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