#AFAB70#AFAB70

#AFAB70 is a light, moderate yellow. Relative luminance 0.394; OKLCH L 73.0% C 0.079 H 104.9°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#AFAB70
RGBrgb(175, 171, 112)
HSLhsl(56, 28%, 56%)
HSVhsv(56, 36%, 69%)
CMYKcmyk(0%, 2.3%, 36%, 31.4%)
CIE-LABlab(69.05, -7.63, 30.93)
CIE-LCHlch(69.05, 31.86, 103.86°)
OKLaboklab(73.05% -0.0202 0.0762)
OKLCHoklch(73.05% 0.079 104.9)
XYZxyz(35.1672, 39.4104, 21.0805)
Luminance0.3941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB70 #7074AF
analogous
#AF8C70 #AFAB70 #94AF70
triadic
#AFAB70 #70AFAB #AB70AF
tetradic
#AFAB70 #70AF8C #7074AF #AF7094
square
#AFAB70 #70AF8C #7074AF #AF7094
split-complementary
#AFAB70 #7094AF #8C70AF
monochromatic
#6A673B #918D51 #AFAB70 #C5C297 #DBD9BE

Accessibility & contrast

On white

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

On black

8.88
#AFAB70 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB70
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB70#FFFFFF#000000##000000
##AFAB701.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A76C
Deuteranopia (green-blind)
#B7AA72
Tritanopia (blue-blind)
#B8A49C
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afab70;
/* rgb */ color: rgb(175, 171, 112);
/* oklch */ color: oklch(73.0% 0.079 104.9);
Tailwind
colors: {
  custom: {
    50: '#c8c39a',
    500: '#afab70',
    950: '#000000',
  },
}
SCSS
$custom: #afab70;
$custom-light: #c8c39a;
$custom-dark: #000000;
JSON
{
  "hex": "#afab70",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 112
  },
  "hsl": {
    "h": 56.19,
    "s": 28.251,
    "l": 56.275
  },
  "oklch": {
    "l": 0.73049,
    "c": 0.07888,
    "h": 104.9
  },
  "luminance": 0.3941
}

Semantic roles & 50–950 ramp

primary
#AFAB70
secondary
#B0B2CA
accent
#69C563
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAB70

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

Preview Lab → · Contrast checker → · Palette generator →

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