#AFAB48#AFAB48

#AFAB48 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.121 H 106.9°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#AFAB48
RGBrgb(175, 171, 72)
HSLhsl(58, 42%, 48%)
HSVhsv(58, 59%, 69%)
CMYKcmyk(0%, 2.3%, 58.9%, 31.4%)
CIE-LABlab(68.54, -11.51, 50.29)
CIE-LCHlch(68.54, 51.60, 102.90°)
OKLaboklab(72.48% -0.0352 0.1159)
OKLCHoklch(72.48% 0.121 106.9)
XYZxyz(33.4128, 38.7087, 11.8411)
Luminance0.3871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB48 #484CAF
analogous
#AF7748 #AFAB48 #7FAF48
triadic
#AFAB48 #48AFAB #AB48AF
tetradic
#AFAB48 #48AF77 #484CAF #AF487F
square
#AFAB48 #48AF77 #484CAF #AF487F
split-complementary
#AFAB48 #487FAF #7748AF
monochromatic
#585624 #848136 #AFAB48 #C4C170 #D6D49B

Accessibility & contrast

On white

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

On black

8.74
#AFAB48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB48
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB48#FFFFFF#000000##000000
##AFAB481.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A53D
Deuteranopia (green-blind)
#BAA94E
Tritanopia (blue-blind)
#BBA196
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab48;
/* rgb */ color: rgb(175, 171, 72);
/* oklch */ color: oklch(72.5% 0.121 106.9);
Tailwind
colors: {
  custom: {
    50: '#c9c37f',
    500: '#afab48',
    950: '#000000',
  },
}
SCSS
$custom: #afab48;
$custom-light: #c9c37f;
$custom-dark: #000000;
JSON
{
  "hex": "#afab48",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 72
  },
  "hsl": {
    "h": 57.67,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72481,
    "c": 0.12111,
    "h": 106.9
  },
  "luminance": 0.38708
}

Semantic roles & 50–950 ramp

primary
#AFAB48
secondary
#9092C2
accent
#5BD256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAB48

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

Preview Lab → · Contrast checker → · Palette generator →

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