#AFAC54#AFAC54

#AFAC54 is a light, moderate yellow. Relative luminance 0.393; OKLCH L 72.8% C 0.111 H 107.1°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AFAC54
RGBrgb(175, 172, 84)
HSLhsl(58, 36%, 51%)
HSVhsv(58, 52%, 69%)
CMYKcmyk(0%, 1.7%, 52%, 31.4%)
CIE-LABlab(68.94, -11.07, 45.09)
CIE-LCHlch(68.94, 46.43, 103.79°)
OKLaboklab(72.84% -0.0326 0.1061)
OKLCHoklch(72.84% 0.111 107.1)
XYZxyz(34.0328, 39.2600, 14.1710)
Luminance0.3926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC54 #5457AF
analogous
#AF7E54 #AFAC54 #84AF54
triadic
#AFAC54 #54AFAC #AC54AF
tetradic
#AFAC54 #54AF7E #5457AF #AF5484
square
#AFAC54 #54AF7E #5457AF #AF5484
split-complementary
#AFAC54 #5484AF #7E54AF
monochromatic
#5D5B2C #87843F #AFAC54 #C3C07E #D6D4A7

Accessibility & contrast

On white

2.37
#AFAC54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#AFAC54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC54
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC54#FFFFFF#000000##000000
##AFAC541.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A64C
Deuteranopia (green-blind)
#BAAA58
Tritanopia (blue-blind)
#BAA298
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac54;
/* rgb */ color: rgb(175, 172, 84);
/* oklch */ color: oklch(72.8% 0.111 107.1);
Tailwind
colors: {
  custom: {
    50: '#c9c487',
    500: '#afac54',
    950: '#000000',
  },
}
SCSS
$custom: #afac54;
$custom-light: #c9c487;
$custom-dark: #000000;
JSON
{
  "hex": "#afac54",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 84
  },
  "hsl": {
    "h": 58.022,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.7284,
    "c": 0.11097,
    "h": 107.1
  },
  "luminance": 0.39259
}

Semantic roles & 50–950 ramp

primary
#AFAC54
secondary
#9B9DC4
accent
#5FCC5C
background
#FCFCF8
surface
#F9F8F0
border
#D2D1CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAC54

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

Preview Lab → · Contrast checker → · Palette generator →

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