#AFAA3F#AFAA3F

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

Color values

HEX#AFAA3F
RGBrgb(175, 170, 63)
HSLhsl(57, 47%, 47%)
HSVhsv(57, 64%, 69%)
CMYKcmyk(0%, 2.9%, 64%, 31.4%)
CIE-LABlab(68.18, -11.61, 53.89)
CIE-LCHlch(68.18, 55.13, 102.16°)
OKLaboklab(72.17% -0.0365 0.1222)
OKLCHoklch(72.17% 0.128 106.6)
XYZxyz(32.9523, 38.2234, 10.3437)
Luminance0.3822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA3F #3F44AF
analogous
#AF723F #AFAA3F #7CAF3F
triadic
#AFAA3F #3FAFAA #AA3FAF
tetradic
#AFAA3F #3FAF72 #3F44AF #AF3F7C
square
#AFAA3F #3FAF72 #3F44AF #AF3F7C
split-complementary
#AFAA3F #3F7CAF #723FAF
monochromatic
#55531F #827E2F #AFAA3F #C7C364 #D7D491

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA3F#FFFFFF#000000##000000
##AFAA3F1.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)
#B8A431
Deuteranopia (green-blind)
#BAA845
Tritanopia (blue-blind)
#BB9F94
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa3f;
/* rgb */ color: rgb(175, 170, 63);
/* oklch */ color: oklch(72.2% 0.128 106.6);
Tailwind
colors: {
  custom: {
    50: '#cac379',
    500: '#afaa3f',
    950: '#000000',
  },
}
SCSS
$custom: #afaa3f;
$custom-light: #cac379;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa3f",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 63
  },
  "hsl": {
    "h": 57.321,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.72173,
    "c": 0.12757,
    "h": 106.6
  },
  "luminance": 0.38222
}

Semantic roles & 50–950 ramp

primary
#AFAA3F
secondary
#878AC3
accent
#57D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAA3F

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

Preview Lab → · Contrast checker → · Palette generator →

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