#AFAB49#AFAB49

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

Color values

HEX#AFAB49
RGBrgb(175, 171, 73)
HSLhsl(58, 41%, 49%)
HSVhsv(58, 58%, 69%)
CMYKcmyk(0%, 2.3%, 58.3%, 31.4%)
CIE-LABlab(68.55, -11.44, 49.85)
CIE-LCHlch(68.55, 51.14, 102.93°)
OKLaboklab(72.49% -0.0349 0.1151)
OKLCHoklch(72.49% 0.12 106.9)
XYZxyz(33.4457, 38.7218, 12.0143)
Luminance0.3872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB49 #494DAF
analogous
#AF7849 #AFAB49 #80AF49
triadic
#AFAB49 #49AFAB #AB49AF
tetradic
#AFAB49 #49AF78 #494DAF #AF4980
square
#AFAB49 #49AF78 #494DAF #AF4980
split-complementary
#AFAB49 #4980AF #7849AF
monochromatic
#595725 #848137 #AFAB49 #C4C171 #D6D49C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB49#FFFFFF#000000##000000
##AFAB491.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)
#B8A53E
Deuteranopia (green-blind)
#BAA94E
Tritanopia (blue-blind)
#BBA196
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab49;
/* rgb */ color: rgb(175, 171, 73);
/* oklch */ color: oklch(72.5% 0.120 106.9);
Tailwind
colors: {
  custom: {
    50: '#c9c37f',
    500: '#afab49',
    950: '#000000',
  },
}
SCSS
$custom: #afab49;
$custom-light: #c9c37f;
$custom-dark: #000000;
JSON
{
  "hex": "#afab49",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 73
  },
  "hsl": {
    "h": 57.647,
    "s": 41.129,
    "l": 48.627
  },
  "oklch": {
    "l": 0.72492,
    "c": 0.12023,
    "h": 106.9
  },
  "luminance": 0.38721
}

Semantic roles & 50–950 ramp

primary
#AFAB49
secondary
#9193C2
accent
#5CD157
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAB49

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

Preview Lab → · Contrast checker → · Palette generator →

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