#AFAA3B#AFAA3B

#AFAA3B is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.1% C 0.131 H 106.7°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#AFAA3B
RGBrgb(175, 170, 59)
HSLhsl(57, 50%, 46%)
HSVhsv(57, 66%, 69%)
CMYKcmyk(0%, 2.9%, 66.3%, 31.4%)
CIE-LABlab(68.15, -11.86, 55.53)
CIE-LCHlch(68.15, 56.79, 102.06°)
OKLaboklab(72.14% -0.0376 0.1251)
OKLCHoklch(72.14% 0.131 106.7)
XYZxyz(32.8445, 38.1803, 9.7762)
Luminance0.3818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA3B #3B40AF
analogous
#AF703B #AFAA3B #7AAF3B
triadic
#AFAA3B #3BAFAA #AA3BAF
tetradic
#AFAA3B #3BAF70 #3B40AF #AF3B7A
square
#AFAA3B #3BAF70 #3B40AF #AF3B7A
split-complementary
#AFAA3B #3B7AAF #703BAF
monochromatic
#53511C #817E2C #AFAA3B #C9C45E #D8D58C

Accessibility & contrast

On white

2.43
#AFAA3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#AFAA3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA3B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA3B#FFFFFF#000000##000000
##AFAA3B1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A42C
Deuteranopia (green-blind)
#BAA842
Tritanopia (blue-blind)
#BB9F93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa3b;
/* rgb */ color: rgb(175, 170, 59);
/* oklch */ color: oklch(72.1% 0.131 106.7);
Tailwind
colors: {
  custom: {
    50: '#cac377',
    500: '#afaa3b',
    950: '#000000',
  },
}
SCSS
$custom: #afaa3b;
$custom-light: #cac377;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa3b",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 59
  },
  "hsl": {
    "h": 57.414,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72138,
    "c": 0.13062,
    "h": 106.7
  },
  "luminance": 0.38179
}

Semantic roles & 50–950 ramp

primary
#AFAA3B
secondary
#8386C3
accent
#55D94F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAA3B

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

Preview Lab → · Contrast checker → · Palette generator →

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