#AFA054#AFA054

#AFA054 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.2% C 0.099 H 98.4°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#AFA054
RGBrgb(175, 160, 84)
HSLhsl(50, 36%, 51%)
HSVhsv(50, 52%, 69%)
CMYKcmyk(0%, 8.6%, 52%, 31.4%)
CIE-LABlab(65.67, -4.72, 41.22)
CIE-LCHlch(65.67, 41.49, 96.54°)
OKLaboklab(70.24% -0.0144 0.0976)
OKLCHoklch(70.24% 0.099 98.4)
XYZxyz(31.8513, 34.8969, 13.4438)
Luminance0.3490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA054 #5463AF
analogous
#AF7254 #AFA054 #90AF54
triadic
#AFA054 #54AFA0 #A054AF
tetradic
#AFA054 #54AF72 #5463AF #AF5490
square
#AFA054 #54AF72 #5463AF #AF5490
split-complementary
#AFA054 #5490AF #7254AF
monochromatic
#5D552C #877B3F #AFA054 #C3B77E #D6CEA7

Accessibility & contrast

On white

2.63
#AFA054 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#AFA054 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA054
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA054#FFFFFF#000000##000000
##AFA0541.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C4D
Deuteranopia (green-blind)
#B1A257
Tritanopia (blue-blind)
#BB968E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa054;
/* rgb */ color: rgb(175, 160, 84);
/* oklch */ color: oklch(70.2% 0.099 98.4);
Tailwind
colors: {
  custom: {
    50: '#c9bb86',
    500: '#afa054',
    950: '#000000',
  },
}
SCSS
$custom: #afa054;
$custom-light: #c9bb86;
$custom-dark: #000000;
JSON
{
  "hex": "#afa054",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 84
  },
  "hsl": {
    "h": 50.11,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.70243,
    "c": 0.09868,
    "h": 98.4
  },
  "luminance": 0.34896
}

Semantic roles & 50–950 ramp

primary
#AFA054
secondary
#9BA2C4
accent
#6ECC5C
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA054

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

Preview Lab → · Contrast checker → · Palette generator →

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