#AFAE2F#AFAE2F

#AFAE2F is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.9% C 0.143 H 109.0°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#AFAE2F
RGBrgb(175, 174, 47)
HSLhsl(60, 58%, 44%)
HSVhsv(60, 73%, 69%)
CMYKcmyk(0%, 0.6%, 73.1%, 31.4%)
CIE-LABlab(69.18, -14.56, 61.13)
CIE-LCHlch(69.18, 62.84, 103.40°)
OKLaboklab(72.93% -0.0464 0.1348)
OKLCHoklch(72.93% 0.143 109)
XYZxyz(33.3296, 39.5923, 8.5752)
Luminance0.3959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE2F #2F30AF
analogous
#AF6E2F #AFAE2F #70AF2F
triadic
#AFAE2F #2FAFAE #AE2FAF
tetradic
#AFAE2F #2FAF6E #2F30AF #AF2F70
square
#AFAE2F #2FAF6E #2F30AF #AF2F70
split-complementary
#AFAE2F #2F70AF #6E2FAF
monochromatic
#4F4E15 #7F7E22 #AFAE2F #CFCE4C #DCDB7C

Accessibility & contrast

On white

2.35
#AFAE2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.92
#AFAE2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE2F
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE2F#FFFFFF#000000##000000
##AFAE2F1.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA716
Deuteranopia (green-blind)
#BEAB39
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae2f;
/* rgb */ color: rgb(175, 174, 47);
/* oklch */ color: oklch(72.9% 0.143 109.0);
Tailwind
colors: {
  custom: {
    50: '#cac571',
    500: '#afae2f',
    950: '#000000',
  },
}
SCSS
$custom: #afae2f;
$custom-light: #cac571;
$custom-dark: #000000;
JSON
{
  "hex": "#afae2f",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 47
  },
  "hsl": {
    "h": 59.531,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.7293,
    "c": 0.14259,
    "h": 109
  },
  "luminance": 0.39591
}

Semantic roles & 50–950 ramp

primary
#AFAE2F
secondary
#7576C4
accent
#48E147
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAE2F

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

Preview Lab → · Contrast checker → · Palette generator →

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