#AFAA2A#AFAA2A

#AFAA2A is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.142 H 107.2°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#AFAA2A
RGBrgb(175, 170, 42)
HSLhsl(58, 61%, 43%)
HSVhsv(58, 76%, 69%)
CMYKcmyk(0%, 2.9%, 76%, 31.4%)
CIE-LABlab(68.04, -12.72, 61.77)
CIE-LCHlch(68.04, 63.06, 101.63°)
OKLaboklab(72.02% -0.0417 0.1352)
OKLCHoklch(72.02% 0.142 107.2)
XYZxyz(32.4732, 38.0317, 7.8204)
Luminance0.3803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA2A #2A2FAF
analogous
#AF672A #AFAA2A #72AF2A
triadic
#AFAA2A #2AAFAA #AA2AAF
tetradic
#AFAA2A #2AAF67 #2A2FAF #AF2A72
square
#AFAA2A #2AAF67 #2A2FAF #AF2A72
split-complementary
#AFAA2A #2A72AF #672AAF
monochromatic
#4C4A12 #7E7A1E #AFAA2A #D2CD44 #DEDA75

Accessibility & contrast

On white

2.44
#AFAA2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#AFAA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA2A
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA2A#FFFFFF#000000##000000
##AFAA2A1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A30B
Deuteranopia (green-blind)
#BBA834
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa2a;
/* rgb */ color: rgb(175, 170, 42);
/* oklch */ color: oklch(72.0% 0.142 107.2);
Tailwind
colors: {
  custom: {
    50: '#cbc36e',
    500: '#afaa2a',
    950: '#000000',
  },
}
SCSS
$custom: #afaa2a;
$custom-light: #cbc36e;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa2a",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 42
  },
  "hsl": {
    "h": 57.744,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72016,
    "c": 0.14154,
    "h": 107.2
  },
  "luminance": 0.38031
}

Semantic roles & 50–950 ramp

primary
#AFAA2A
secondary
#6F72C6
accent
#49E443
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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