#AFAB4D#AFAB4D

#AFAB4D is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.117 H 106.7°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFAB4D
RGBrgb(175, 171, 77)
HSLhsl(58, 39%, 49%)
HSVhsv(58, 56%, 69%)
CMYKcmyk(0%, 2.3%, 56%, 31.4%)
CIE-LABlab(68.59, -11.13, 48.03)
CIE-LCHlch(68.59, 49.31, 103.05°)
OKLaboklab(72.54% -0.0336 0.1117)
OKLCHoklch(72.54% 0.117 106.7)
XYZxyz(33.5826, 38.7766, 12.7353)
Luminance0.3878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB4D #4D51AF
analogous
#AF7A4D #AFAB4D #82AF4D
triadic
#AFAB4D #4DAFAB #AB4DAF
tetradic
#AFAB4D #4DAF7A #4D51AF #AF4D82
square
#AFAB4D #4DAF7A #4D51AF #AF4D82
split-complementary
#AFAB4D #4D82AF #7A4DAF
monochromatic
#5A5828 #85813A #AFAB4D #C3C076 #D6D3A1

Accessibility & contrast

On white

2.40
#AFAB4D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AFAB4D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB4D
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB4D#FFFFFF#000000##000000
##AFAB4D1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A543
Deuteranopia (green-blind)
#BAA952
Tritanopia (blue-blind)
#BAA196
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab4d;
/* rgb */ color: rgb(175, 171, 77);
/* oklch */ color: oklch(72.5% 0.117 106.7);
Tailwind
colors: {
  custom: {
    50: '#c9c382',
    500: '#afab4d',
    950: '#000000',
  },
}
SCSS
$custom: #afab4d;
$custom-light: #c9c382;
$custom-dark: #000000;
JSON
{
  "hex": "#afab4d",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 77
  },
  "hsl": {
    "h": 57.551,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.72537,
    "c": 0.1166,
    "h": 106.7
  },
  "luminance": 0.38776
}

Semantic roles & 50–950 ramp

primary
#AFAB4D
secondary
#9597C3
accent
#5ECF59
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB4D

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

Preview Lab → · Contrast checker → · Palette generator →

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