#AFB477#AFB477

#AFB477 is a light, moderate yellow. Relative luminance 0.431; OKLCH L 75.1% C 0.082 H 112.2°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#AFB477
RGBrgb(175, 180, 119)
HSLhsl(65, 29%, 59%)
HSVhsv(65, 34%, 71%)
CMYKcmyk(2.8%, 0%, 33.9%, 29.4%)
CIE-LABlab(71.62, -11.49, 30.59)
CIE-LCHlch(71.62, 32.67, 110.58°)
OKLaboklab(75.13% -0.0308 0.0757)
OKLCHoklch(75.13% 0.082 112.2)
XYZxyz(37.3304, 43.0889, 23.7996)
Luminance0.4309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB477 #7C77B4
analogous
#B49A77 #AFB477 #90B477
triadic
#AFB477 #77AFB4 #B477AF
tetradic
#AFB477 #77B49A #7C77B4 #B47790
square
#AFB477 #77B49A #7C77B4 #B47790
split-complementary
#AFB477 #7790B4 #9A77B4
monochromatic
#6E723F #949955 #AFB477 #C6CA9E #DDE0C6

Accessibility & contrast

On white

2.18
#AFB477 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#AFB477 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB477
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB477#FFFFFF#000000##000000
##AFB4771.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAF73
Deuteranopia (green-blind)
#BDB07A
Tritanopia (blue-blind)
#B6ADA4
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb477;
/* rgb */ color: rgb(175, 180, 119);
/* oklch */ color: oklch(75.1% 0.082 112.2);
Tailwind
colors: {
  custom: {
    50: '#c7ca9f',
    500: '#afb477',
    950: '#000000',
  },
}
SCSS
$custom: #afb477;
$custom-light: #c7ca9f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb477",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 119
  },
  "hsl": {
    "h": 64.918,
    "s": 28.91,
    "l": 58.627
  },
  "oklch": {
    "l": 0.75126,
    "c": 0.08172,
    "h": 112.2
  },
  "luminance": 0.43088
}

Semantic roles & 50–950 ramp

primary
#AFB477
secondary
#B9B7CF
accent
#63C56B
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB477

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

Preview Lab → · Contrast checker → · Palette generator →

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