#AFA54F#AFA54F

#AFA54F is a light, moderate yellow. Relative luminance 0.366; OKLCH L 71.3% C 0.108 H 102.7°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#AFA54F
RGBrgb(175, 165, 79)
HSLhsl(54, 38%, 50%)
HSVhsv(54, 55%, 69%)
CMYKcmyk(0%, 5.7%, 54.9%, 31.4%)
CIE-LABlab(66.97, -7.82, 45.22)
CIE-LCHlch(66.97, 45.89, 99.81°)
OKLaboklab(71.26% -0.0239 0.1058)
OKLCHoklch(71.26% 0.108 102.7)
XYZxyz(32.5466, 36.5899, 12.7438)
Luminance0.3659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA54F #4F59AF
analogous
#AF754F #AFA54F #89AF4F
triadic
#AFA54F #4FAFA5 #A54FAF
tetradic
#AFA54F #4FAF75 #4F59AF #AF4F89
square
#AFA54F #4FAF75 #4F59AF #AF4F89
split-complementary
#AFA54F #4F89AF #754FAF
monochromatic
#5B5529 #857D3C #AFA54F #C2BB79 #D5D0A3

Accessibility & contrast

On white

2.52
#AFA54F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#AFA54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA54F
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA54F#FFFFFF#000000##000000
##AFA54F1.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A047
Deuteranopia (green-blind)
#B5A553
Tritanopia (blue-blind)
#BB9B92
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa54f;
/* rgb */ color: rgb(175, 165, 79);
/* oklch */ color: oklch(71.3% 0.108 102.7);
Tailwind
colors: {
  custom: {
    50: '#c9bf83',
    500: '#afa54f',
    950: '#000000',
  },
}
SCSS
$custom: #afa54f;
$custom-light: #c9bf83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa54f",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 79
  },
  "hsl": {
    "h": 53.75,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.71255,
    "c": 0.10849,
    "h": 102.7
  },
  "luminance": 0.36589
}

Semantic roles & 50–950 ramp

primary
#AFA54F
secondary
#979CC3
accent
#66CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA54F

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

Preview Lab → · Contrast checker → · Palette generator →

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