#A1A828#A1A828

#A1A828 is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.4% C 0.144 H 112.8°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#A1A828
RGBrgb(161, 168, 40)
HSLhsl(63, 62%, 41%)
HSVhsv(63, 76%, 66%)
CMYKcmyk(4.2%, 0%, 76.2%, 34.1%)
CIE-LABlab(66.32, -17.88, 60.41)
CIE-LCHlch(66.32, 63.00, 106.49°)
OKLaboklab(70.35% -0.0556 0.1325)
OKLCHoklch(70.35% 0.144 112.8)
XYZxyz(29.0845, 35.7362, 7.3727)
Luminance0.3574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1A828 #2F28A8
analogous
#A86F28 #A1A828 #61A828
triadic
#A1A828 #28A1A8 #A828A1
tetradic
#A1A828 #28A86F #2F28A8 #A82861
square
#A1A828 #28A86F #2F28A8 #A82861
split-complementary
#A1A828 #2861A8 #6F28A8
monochromatic
#424510 #72771C #A1A828 #C9D13D #D6DC6E

Accessibility & contrast

On white

2.58
#A1A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#A1A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1A828
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1A828#FFFFFF#000000##000000
##A1A8281.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A007
Deuteranopia (green-blind)
#B5A333
Tritanopia (blue-blind)
#AC9E90
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a1a828;
/* rgb */ color: rgb(161, 168, 40);
/* oklch */ color: oklch(70.4% 0.144 112.8);
Tailwind
colors: {
  custom: {
    50: '#c0c16d',
    500: '#a1a828',
    950: '#000000',
  },
}
SCSS
$custom: #a1a828;
$custom-light: #c0c16d;
$custom-dark: #000000;
JSON
{
  "hex": "#a1a828",
  "rgb": {
    "r": 161,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 63.281,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70351,
    "c": 0.1437,
    "h": 112.8
  },
  "luminance": 0.35736
}

Semantic roles & 50–950 ramp

primary
#A1A828
secondary
#6E69C3
accent
#43E54C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A1A828

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

Preview Lab → · Contrast checker → · Palette generator →

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