#AFAB54#AFAB54

#AFAB54 is a light, moderate yellow. Relative luminance 0.389; OKLCH L 72.6% C 0.110 H 106.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#AFAB54
RGBrgb(175, 171, 84)
HSLhsl(57, 36%, 51%)
HSVhsv(57, 52%, 69%)
CMYKcmyk(0%, 2.3%, 52%, 31.4%)
CIE-LABlab(68.66, -10.54, 44.77)
CIE-LCHlch(68.66, 46.00, 103.25°)
OKLaboklab(72.62% -0.0311 0.1054)
OKLCHoklch(72.62% 0.11 106.5)
XYZxyz(33.8432, 38.8808, 14.1078)
Luminance0.3888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB54 #5458AF
analogous
#AF7D54 #AFAB54 #85AF54
triadic
#AFAB54 #54AFAB #AB54AF
tetradic
#AFAB54 #54AF7D #5458AF #AF5485
square
#AFAB54 #54AF7D #5458AF #AF5485
split-complementary
#AFAB54 #5485AF #7D54AF
monochromatic
#5D5B2C #87843F #AFAB54 #C3BF7E #D6D4A7

Accessibility & contrast

On white

2.39
#AFAB54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#AFAB54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB54
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB54#FFFFFF#000000##000000
##AFAB541.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A54C
Deuteranopia (green-blind)
#B9A958
Tritanopia (blue-blind)
#BAA197
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab54;
/* rgb */ color: rgb(175, 171, 84);
/* oklch */ color: oklch(72.6% 0.110 106.5);
Tailwind
colors: {
  custom: {
    50: '#c9c386',
    500: '#afab54',
    950: '#000000',
  },
}
SCSS
$custom: #afab54;
$custom-light: #c9c386;
$custom-dark: #000000;
JSON
{
  "hex": "#afab54",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 84
  },
  "hsl": {
    "h": 57.363,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.72621,
    "c": 0.10987,
    "h": 106.5
  },
  "luminance": 0.3888
}

Semantic roles & 50–950 ramp

primary
#AFAB54
secondary
#9B9DC4
accent
#60CC5C
background
#FCFBF8
surface
#F9F7F0
border
#D2D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAB54

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

Preview Lab → · Contrast checker → · Palette generator →

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