#A2AF2B#A2AF2B

#A2AF2B 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#A2AF2B
RGBrgb(162, 175, 43)
HSLhsl(66, 61%, 43%)
HSVhsv(66, 75%, 69%)
CMYKcmyk(7.4%, 0%, 75.4%, 31.4%)
CIE-LABlab(68.40, -20.85, 61.39)
CIE-LCHlch(68.40, 64.83, 108.76°)
OKLaboklab(72.04% -0.0636 0.1351)
OKLCHoklch(72.04% 0.149 115.2)
XYZxyz(30.6672, 38.5163, 8.1039)
Luminance0.3852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF2B #382BAF
analogous
#AF7A2B #A2AF2B #60AF2B
triadic
#A2AF2B #2BA2AF #AF2BA2
tetradic
#A2AF2B #2BAF7A #382BAF #AF2B60
square
#A2AF2B #2BAF7A #382BAF #AF2B60
split-complementary
#A2AF2B #2B60AF #7A2BAF
monochromatic
#474D13 #757E1F #A2AF2B #C4D146 #D3DE77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A2AF2B#FFFFFF#000000##000000
##A2AF2B1.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)
#BCA60B
Deuteranopia (green-blind)
#BBA836
Tritanopia (blue-blind)
#ADA596
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af2b;
/* rgb */ color: rgb(162, 175, 43);
/* oklch */ color: oklch(72.0% 0.149 115.2);
Tailwind
colors: {
  custom: {
    50: '#c1c66f',
    500: '#a2af2b',
    950: '#000000',
  },
}
SCSS
$custom: #a2af2b;
$custom-light: #c1c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af2b",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 65.909,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72044,
    "c": 0.14932,
    "h": 115.2
  },
  "luminance": 0.38516
}

Semantic roles & 50–950 ramp

primary
#A2AF2B
secondary
#7970C5
accent
#44E454
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A2AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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