#AFB478#AFB478

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

Color values

HEX#AFB478
RGBrgb(175, 180, 120)
HSLhsl(65, 29%, 59%)
HSVhsv(65, 33%, 71%)
CMYKcmyk(2.8%, 0%, 33.3%, 29.4%)
CIE-LABlab(71.63, -11.36, 30.08)
CIE-LCHlch(71.63, 32.15, 110.69°)
OKLaboklab(75.14% -0.0304 0.0745)
OKLCHoklch(75.14% 0.081 112.2)
XYZxyz(37.3908, 43.1130, 24.1176)
Luminance0.4311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB478 #7D78B4
analogous
#B49B78 #AFB478 #91B478
triadic
#AFB478 #78AFB4 #B478AF
tetradic
#AFB478 #78B49B #7D78B4 #B47891
square
#AFB478 #78B49B #7D78B4 #B47891
split-complementary
#AFB478 #7891B4 #9B78B4
monochromatic
#6E723F #949A55 #AFB478 #C6CA9F #DEE0C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB478#FFFFFF#000000##000000
##AFB4781.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)
#BDAF74
Deuteranopia (green-blind)
#BDB07B
Tritanopia (blue-blind)
#B6ADA5
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb478;
/* rgb */ color: rgb(175, 180, 120);
/* oklch */ color: oklch(75.1% 0.081 112.2);
Tailwind
colors: {
  custom: {
    50: '#c7ca9f',
    500: '#afb478',
    950: '#000000',
  },
}
SCSS
$custom: #afb478;
$custom-light: #c7ca9f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb478",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 120
  },
  "hsl": {
    "h": 65,
    "s": 28.571,
    "l": 58.824
  },
  "oklch": {
    "l": 0.75144,
    "c": 0.08051,
    "h": 112.2
  },
  "luminance": 0.43113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFB478

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

Preview Lab → · Contrast checker → · Palette generator →

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