#AFAE52#AFAE52

#AFAE52 is a light, moderate yellow. Relative luminance 0.400; OKLCH L 73.3% C 0.115 H 108.4°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AFAE52
RGBrgb(175, 174, 82)
HSLhsl(59, 37%, 50%)
HSVhsv(59, 53%, 69%)
CMYKcmyk(0%, 0.6%, 53.1%, 31.4%)
CIE-LABlab(69.47, -12.28, 46.67)
CIE-LCHlch(69.47, 48.26, 104.74°)
OKLaboklab(73.25% -0.0363 0.1093)
OKLCHoklch(73.25% 0.115 108.4)
XYZxyz(34.3391, 39.9962, 13.8921)
Luminance0.4000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE52 #5253AF
analogous
#AF7F52 #AFAE52 #81AF52
triadic
#AFAE52 #52AFAE #AE52AF
tetradic
#AFAE52 #52AF7F #5253AF #AF5281
square
#AFAE52 #52AF7F #5253AF #AF5281
split-complementary
#AFAE52 #5281AF #7F52AF
monochromatic
#5C5C2B #86853E #AFAE52 #C2C27C #D6D5A6

Accessibility & contrast

On white

2.33
#AFAE52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AFAE52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE52
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE52#FFFFFF#000000##000000
##AFAE521.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA849
Deuteranopia (green-blind)
#BCAB57
Tritanopia (blue-blind)
#BAA499
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afae52;
/* rgb */ color: rgb(175, 174, 82);
/* oklch */ color: oklch(73.3% 0.115 108.4);
Tailwind
colors: {
  custom: {
    50: '#c9c685',
    500: '#afae52',
    950: '#000000',
  },
}
SCSS
$custom: #afae52;
$custom-light: #c9c685;
$custom-dark: #000000;
JSON
{
  "hex": "#afae52",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 82
  },
  "hsl": {
    "h": 59.355,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.73252,
    "c": 0.11516,
    "h": 108.4
  },
  "luminance": 0.39995
}

Semantic roles & 50–950 ramp

primary
#AFAE52
secondary
#9A9AC3
accent
#5CCD5B
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAE52

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

Preview Lab → · Contrast checker → · Palette generator →

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