#A2A828#A2A828

#A2A828 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.4% C 0.143 H 112.3°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#A2A828
RGBrgb(162, 168, 40)
HSLhsl(63, 62%, 41%)
HSVhsv(63, 76%, 66%)
CMYKcmyk(3.6%, 0%, 76.2%, 34.1%)
CIE-LABlab(66.40, -17.45, 60.51)
CIE-LCHlch(66.40, 62.98, 106.09°)
OKLaboklab(70.44% -0.0544 0.1327)
OKLCHoklch(70.44% 0.143 112.3)
XYZxyz(29.2869, 35.8406, 7.3822)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A828 #2E28A8
analogous
#A86E28 #A2A828 #62A828
triadic
#A2A828 #28A2A8 #A828A2
tetradic
#A2A828 #28A86E #2E28A8 #A82862
square
#A2A828 #28A86E #2E28A8 #A82862
split-complementary
#A2A828 #2862A8 #6E28A8
monochromatic
#434510 #72771C #A2A828 #CAD13D #D7DC6E

Accessibility & contrast

On white

2.57
#A2A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#A2A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A828
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A828#FFFFFF#000000##000000
##A2A8281.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2a828;
/* rgb */ color: rgb(162, 168, 40);
/* oklch */ color: oklch(70.4% 0.143 112.3);
Tailwind
colors: {
  custom: {
    50: '#c1c16d',
    500: '#a2a828',
    950: '#000000',
  },
}
SCSS
$custom: #a2a828;
$custom-light: #c1c16d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a828",
  "rgb": {
    "r": 162,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 62.813,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70435,
    "c": 0.14342,
    "h": 112.3
  },
  "luminance": 0.3584
}

Semantic roles & 50–950 ramp

primary
#A2A828
secondary
#6D69C3
accent
#43E54B
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A2A828

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

Preview Lab → · Contrast checker → · Palette generator →

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