#AFA954#AFA954

#AFA954 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.2% C 0.108 H 105.1°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AFA954
RGBrgb(175, 169, 84)
HSLhsl(56, 36%, 51%)
HSVhsv(56, 52%, 69%)
CMYKcmyk(0%, 3.4%, 52%, 31.4%)
CIE-LABlab(68.12, -9.50, 44.13)
CIE-LCHlch(68.12, 45.14, 102.15°)
OKLaboklab(72.19% -0.0281 0.104)
OKLCHoklch(72.19% 0.108 105.1)
XYZxyz(33.4683, 38.1310, 13.9828)
Luminance0.3813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA954 #545AAF
analogous
#AF7B54 #AFA954 #87AF54
triadic
#AFA954 #54AFA9 #A954AF
tetradic
#AFA954 #54AF7B #545AAF #AF5487
square
#AFA954 #54AF7B #545AAF #AF5487
split-complementary
#AFA954 #5487AF #7B54AF
monochromatic
#5D5A2C #87823F #AFA954 #C3BE7E #D6D3A7

Accessibility & contrast

On white

2.43
#AFA954 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#AFA954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA954
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA954#FFFFFF#000000##000000
##AFA9541.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A44C
Deuteranopia (green-blind)
#B8A858
Tritanopia (blue-blind)
#BA9F96
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa954;
/* rgb */ color: rgb(175, 169, 84);
/* oklch */ color: oklch(72.2% 0.108 105.1);
Tailwind
colors: {
  custom: {
    50: '#c9c286',
    500: '#afa954',
    950: '#000000',
  },
}
SCSS
$custom: #afa954;
$custom-light: #c9c286;
$custom-dark: #000000;
JSON
{
  "hex": "#afa954",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 84
  },
  "hsl": {
    "h": 56.044,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.72186,
    "c": 0.10771,
    "h": 105.1
  },
  "luminance": 0.3813
}

Semantic roles & 50–950 ramp

primary
#AFA954
secondary
#9B9EC4
accent
#63CC5C
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA954

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

Preview Lab → · Contrast checker → · Palette generator →

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