#AFAB50#AFAB50

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

Color values

HEX#AFAB50
RGBrgb(175, 171, 80)
HSLhsl(57, 37%, 50%)
HSVhsv(57, 54%, 69%)
CMYKcmyk(0%, 2.3%, 54.3%, 31.4%)
CIE-LABlab(68.62, -10.89, 46.65)
CIE-LCHlch(68.62, 47.90, 103.14°)
OKLaboklab(72.57% -0.0325 0.109)
OKLCHoklch(72.57% 0.114 106.6)
XYZxyz(33.6910, 38.8199, 13.3061)
Luminance0.3882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB50 #5054AF
analogous
#AF7C50 #AFAB50 #83AF50
triadic
#AFAB50 #50AFAB #AB50AF
tetradic
#AFAB50 #50AF7C #5054AF #AF5083
square
#AFAB50 #50AF7C #5054AF #AF5083
split-complementary
#AFAB50 #5083AF #7C50AF
monochromatic
#5B592A #85823D #AFAB50 #C2BF7A #D5D3A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB50#FFFFFF#000000##000000
##AFAB501.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)
#B8A547
Deuteranopia (green-blind)
#BAA955
Tritanopia (blue-blind)
#BAA197
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab50;
/* rgb */ color: rgb(175, 171, 80);
/* oklch */ color: oklch(72.6% 0.114 106.6);
Tailwind
colors: {
  custom: {
    50: '#c9c384',
    500: '#afab50',
    950: '#000000',
  },
}
SCSS
$custom: #afab50;
$custom-light: #c9c384;
$custom-dark: #000000;
JSON
{
  "hex": "#afab50",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 80
  },
  "hsl": {
    "h": 57.474,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.72572,
    "c": 0.11377,
    "h": 106.6
  },
  "luminance": 0.38819
}

Semantic roles & 50–950 ramp

primary
#AFAB50
secondary
#989AC3
accent
#5FCD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB50

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

Preview Lab → · Contrast checker → · Palette generator →

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