#AFA056#AFA056

#AFA056 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.3% C 0.097 H 98.1°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#AFA056
RGBrgb(175, 160, 86)
HSLhsl(50, 36%, 51%)
HSVhsv(50, 51%, 69%)
CMYKcmyk(0%, 8.6%, 50.9%, 31.4%)
CIE-LABlab(65.69, -4.54, 40.24)
CIE-LCHlch(65.69, 40.49, 96.44°)
OKLaboklab(70.27% -0.0137 0.0957)
OKLCHoklch(70.27% 0.097 98.1)
XYZxyz(31.9307, 34.9287, 13.8622)
Luminance0.3493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA056 #5665AF
analogous
#AF7356 #AFA056 #91AF56
triadic
#AFA056 #56AFA0 #A056AF
tetradic
#AFA056 #56AF73 #5665AF #AF5691
square
#AFA056 #56AF73 #5665AF #AF5691
split-complementary
#AFA056 #5691AF #7356AF
monochromatic
#5E562D #887C40 #AFA056 #C3B780 #D6CFA9

Accessibility & contrast

On white

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

On black

7.99
#AFA056 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA056
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA056#FFFFFF#000000##000000
##AFA0561.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C50
Deuteranopia (green-blind)
#B1A259
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa056;
/* rgb */ color: rgb(175, 160, 86);
/* oklch */ color: oklch(70.3% 0.097 98.1);
Tailwind
colors: {
  custom: {
    50: '#c9bb87',
    500: '#afa056',
    950: '#000000',
  },
}
SCSS
$custom: #afa056;
$custom-light: #c9bb87;
$custom-dark: #000000;
JSON
{
  "hex": "#afa056",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 86
  },
  "hsl": {
    "h": 49.888,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.7027,
    "c": 0.09662,
    "h": 98.1
  },
  "luminance": 0.34927
}

Semantic roles & 50–950 ramp

primary
#AFA056
secondary
#9DA3C4
accent
#6FCC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA056

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

Preview Lab → · Contrast checker → · Palette generator →

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