#AFA050#AFA050

#AFA050 is a light, moderate yellow. Relative luminance 0.348; OKLCH L 70.2% C 0.103 H 98.9°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#AFA050
RGBrgb(175, 160, 80)
HSLhsl(51, 37%, 50%)
HSVhsv(51, 54%, 69%)
CMYKcmyk(0%, 8.6%, 54.3%, 31.4%)
CIE-LABlab(65.62, -5.07, 43.16)
CIE-LCHlch(65.62, 43.45, 96.70°)
OKLaboklab(70.19% -0.0159 0.1015)
OKLCHoklch(70.19% 0.103 98.9)
XYZxyz(31.6990, 34.8360, 12.6421)
Luminance0.3483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA050 #505FAF
analogous
#AF7050 #AFA050 #8FAF50
triadic
#AFA050 #50AFA0 #A050AF
tetradic
#AFA050 #50AF70 #505FAF #AF508F
square
#AFA050 #50AF70 #505FAF #AF508F
split-complementary
#AFA050 #508FAF #7050AF
monochromatic
#5B532A #857A3D #AFA050 #C2B77A #D5CEA4

Accessibility & contrast

On white

2.64
#AFA050 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#AFA050 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA050
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA050#FFFFFF#000000##000000
##AFA0501.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa050;
/* rgb */ color: rgb(175, 160, 80);
/* oklch */ color: oklch(70.2% 0.103 98.9);
Tailwind
colors: {
  custom: {
    50: '#c9bb83',
    500: '#afa050',
    950: '#000000',
  },
}
SCSS
$custom: #afa050;
$custom-light: #c9bb83;
$custom-dark: #000000;
JSON
{
  "hex": "#afa050",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 80
  },
  "hsl": {
    "h": 50.526,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.7019,
    "c": 0.10269,
    "h": 98.9
  },
  "luminance": 0.34835
}

Semantic roles & 50–950 ramp

primary
#AFA050
secondary
#989FC3
accent
#6DCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AFA050

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

Preview Lab → · Contrast checker → · Palette generator →

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