#A2AF2C#A2AF2C

#A2AF2C is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.0% C 0.149 H 115.2°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#A2AF2C
RGBrgb(162, 175, 44)
HSLhsl(66, 60%, 43%)
HSVhsv(66, 75%, 69%)
CMYKcmyk(7.4%, 0%, 74.9%, 31.4%)
CIE-LABlab(68.40, -20.81, 61.06)
CIE-LCHlch(68.40, 64.51, 108.82°)
OKLaboklab(72.05% -0.0634 0.1346)
OKLCHoklch(72.05% 0.149 115.2)
XYZxyz(30.6857, 38.5237, 8.2017)
Luminance0.3852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF2C #392CAF
analogous
#AF7A2C #A2AF2C #61AF2C
triadic
#A2AF2C #2CA2AF #AF2CA2
tetradic
#A2AF2C #2CAF7A #392CAF #AF2C61
square
#A2AF2C #2CAF7A #392CAF #AF2C61
split-complementary
#A2AF2C #2C61AF #7A2CAF
monochromatic
#474D13 #757E20 #A2AF2C #C3D147 #D3DD78

Accessibility & contrast

On white

2.41
#A2AF2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#A2AF2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF2C
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF2C#FFFFFF#000000##000000
##A2AF2C1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA60E
Deuteranopia (green-blind)
#BBA837
Tritanopia (blue-blind)
#ADA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af2c;
/* rgb */ color: rgb(162, 175, 44);
/* oklch */ color: oklch(72.0% 0.149 115.2);
Tailwind
colors: {
  custom: {
    50: '#c1c66f',
    500: '#a2af2c',
    950: '#000000',
  },
}
SCSS
$custom: #a2af2c;
$custom-light: #c1c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af2c",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 65.954,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.7205,
    "c": 0.14876,
    "h": 115.2
  },
  "luminance": 0.38523
}

Semantic roles & 50–950 ramp

primary
#A2AF2C
secondary
#7A72C5
accent
#45E355
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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