#A2AF38#A2AF38

#A2AF38 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.1% C 0.141 H 115.4°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#A2AF38
RGBrgb(162, 175, 56)
HSLhsl(67, 52%, 45%)
HSVhsv(67, 68%, 69%)
CMYKcmyk(7.4%, 0%, 68%, 31.4%)
CIE-LABlab(68.48, -20.17, 56.74)
CIE-LCHlch(68.48, 60.22, 109.57°)
OKLaboklab(72.14% -0.0605 0.1275)
OKLCHoklch(72.14% 0.141 115.4)
XYZxyz(30.9448, 38.6273, 9.5663)
Luminance0.3863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AF38 #4538AF
analogous
#AF8138 #A2AF38 #66AF38
triadic
#A2AF38 #38A2AF #AF38A2
tetradic
#A2AF38 #38AF81 #4538AF #AF3866
square
#A2AF38 #38AF81 #4538AF #AF3866
split-complementary
#A2AF38 #3866AF #8138AF
monochromatic
#4C521A #778129 #A2AF38 #BECA5A #D0D988

Accessibility & contrast

On white

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

On black

8.73
#A2AF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AF38
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AF38#FFFFFF#000000##000000
##A2AF381.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA626
Deuteranopia (green-blind)
#BAA841
Tritanopia (blue-blind)
#ACA597
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a2af38;
/* rgb */ color: rgb(162, 175, 56);
/* oklch */ color: oklch(72.1% 0.141 115.4);
Tailwind
colors: {
  custom: {
    50: '#c0c676',
    500: '#a2af38',
    950: '#000000',
  },
}
SCSS
$custom: #a2af38;
$custom-light: #c0c676;
$custom-dark: #000000;
JSON
{
  "hex": "#a2af38",
  "rgb": {
    "r": 162,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 66.555,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.72135,
    "c": 0.14114,
    "h": 115.4
  },
  "luminance": 0.38627
}

Semantic roles & 50–950 ramp

primary
#A2AF38
secondary
#8780C3
accent
#4DDB5C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A2AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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