#AFA54D#AFA54D

#AFA54D is a light, moderate yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.110 H 102.9°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA54D
RGBrgb(175, 165, 77)
HSLhsl(54, 39%, 49%)
HSVhsv(54, 56%, 69%)
CMYKcmyk(0%, 5.7%, 56%, 31.4%)
CIE-LABlab(66.95, -7.98, 46.16)
CIE-LCHlch(66.95, 46.84, 99.81°)
OKLaboklab(71.23% -0.0246 0.1076)
OKLCHoklch(71.23% 0.11 102.9)
XYZxyz(32.4749, 36.5612, 12.3661)
Luminance0.3656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA54D #4D57AF
analogous
#AF744D #AFA54D #88AF4D
triadic
#AFA54D #4DAFA5 #A54DAF
tetradic
#AFA54D #4DAF74 #4D57AF #AF4D88
square
#AFA54D #4DAF74 #4D57AF #AF4D88
split-complementary
#AFA54D #4D88AF #744DAF
monochromatic
#5A5528 #857D3A #AFA54D #C3BB76 #D6D0A1

Accessibility & contrast

On white

2.53
#AFA54D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA54D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA54D
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA54D#FFFFFF#000000##000000
##AFA54D1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A044
Deuteranopia (green-blind)
#B5A551
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa54d;
/* rgb */ color: rgb(175, 165, 77);
/* oklch */ color: oklch(71.2% 0.110 102.9);
Tailwind
colors: {
  custom: {
    50: '#c9bf82',
    500: '#afa54d',
    950: '#000000',
  },
}
SCSS
$custom: #afa54d;
$custom-light: #c9bf82;
$custom-dark: #000000;
JSON
{
  "hex": "#afa54d",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 77
  },
  "hsl": {
    "h": 53.878,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.7123,
    "c": 0.1104,
    "h": 102.9
  },
  "luminance": 0.3656
}

Semantic roles & 50–950 ramp

primary
#AFA54D
secondary
#959AC3
accent
#65CF59
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA54D

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

Preview Lab → · Contrast checker → · Palette generator →

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