#AFAB74#AFAB74

#AFAB74 is a light, moderate yellow. Relative luminance 0.395; OKLCH L 73.1% C 0.074 H 104.5°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#AFAB74
RGBrgb(175, 171, 116)
HSLhsl(56, 27%, 57%)
HSVhsv(56, 34%, 69%)
CMYKcmyk(0%, 2.3%, 33.7%, 31.4%)
CIE-LABlab(69.11, -7.14, 28.89)
CIE-LCHlch(69.11, 29.76, 103.88°)
OKLaboklab(73.12% -0.0186 0.0716)
OKLCHoklch(73.12% 0.074 104.5)
XYZxyz(35.3948, 39.5015, 22.2796)
Luminance0.3950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB74 #7478AF
analogous
#AF8E74 #AFAB74 #96AF74
triadic
#AFAB74 #74AFAB #AB74AF
tetradic
#AFAB74 #74AF8E #7478AF #AF7496
square
#AFAB74 #74AF8E #7478AF #AF7496
split-complementary
#AFAB74 #7496AF #8E74AF
monochromatic
#6B683E #928E54 #AFAB74 #C5C29B #DCDAC2

Accessibility & contrast

On white

2.36
#AFAB74 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#AFAB74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB74
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB74#FFFFFF#000000##000000
##AFAB741.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A770
Deuteranopia (green-blind)
#B6AA76
Tritanopia (blue-blind)
#B7A49D
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afab74;
/* rgb */ color: rgb(175, 171, 116);
/* oklch */ color: oklch(73.1% 0.074 104.5);
Tailwind
colors: {
  custom: {
    50: '#c7c39c',
    500: '#afab74',
    950: '#000000',
  },
}
SCSS
$custom: #afab74;
$custom-light: #c7c39c;
$custom-dark: #000000;
JSON
{
  "hex": "#afab74",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 116
  },
  "hsl": {
    "h": 55.932,
    "s": 26.941,
    "l": 57.059
  },
  "oklch": {
    "l": 0.73123,
    "c": 0.074,
    "h": 104.5
  },
  "luminance": 0.39501
}

Semantic roles & 50–950 ramp

primary
#AFAB74
secondary
#B3B5CB
accent
#6BC365
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAB74

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

Preview Lab → · Contrast checker → · Palette generator →

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