#AFA957#AFA957

#AFA957 is a light, moderate yellow. Relative luminance 0.382; OKLCH L 72.2% C 0.105 H 105.0°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#AFA957
RGBrgb(175, 169, 87)
HSLhsl(56, 35%, 51%)
HSVhsv(56, 50%, 69%)
CMYKcmyk(0%, 3.4%, 50.3%, 31.4%)
CIE-LABlab(68.15, -9.23, 42.69)
CIE-LCHlch(68.15, 43.67, 102.20°)
OKLaboklab(72.22% -0.027 0.1011)
OKLCHoklch(72.22% 0.105 105)
XYZxyz(33.5883, 38.1790, 14.6149)
Luminance0.3818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA957 #575DAF
analogous
#AF7D57 #AFA957 #89AF57
triadic
#AFA957 #57AFA9 #A957AF
tetradic
#AFA957 #57AF7D #575DAF #AF5789
square
#AFA957 #57AF7D #575DAF #AF5789
split-complementary
#AFA957 #5789AF #7D57AF
monochromatic
#5F5B2D #888341 #AFA957 #C3BE80 #D6D3AA

Accessibility & contrast

On white

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

On black

8.64
#AFA957 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA957
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA957#FFFFFF#000000##000000
##AFA9571.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A450
Deuteranopia (green-blind)
#B8A85B
Tritanopia (blue-blind)
#BAA096
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa957;
/* rgb */ color: rgb(175, 169, 87);
/* oklch */ color: oklch(72.2% 0.105 105.0);
Tailwind
colors: {
  custom: {
    50: '#c9c288',
    500: '#afa957',
    950: '#000000',
  },
}
SCSS
$custom: #afa957;
$custom-light: #c9c288;
$custom-dark: #000000;
JSON
{
  "hex": "#afa957",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 87
  },
  "hsl": {
    "h": 55.909,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.72225,
    "c": 0.10467,
    "h": 105
  },
  "luminance": 0.38178
}

Semantic roles & 50–950 ramp

primary
#AFA957
secondary
#9EA0C4
accent
#64CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA957

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

Preview Lab → · Contrast checker → · Palette generator →

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