#AFAA4C#AFAA4C

#AFAA4C is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.3% C 0.116 H 106.2°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#AFAA4C
RGBrgb(175, 170, 76)
HSLhsl(57, 39%, 49%)
HSVhsv(57, 57%, 69%)
CMYKcmyk(0%, 2.9%, 56.6%, 31.4%)
CIE-LABlab(68.30, -10.69, 48.18)
CIE-LCHlch(68.30, 49.35, 102.51°)
OKLaboklab(72.31% -0.0324 0.1119)
OKLCHoklch(72.31% 0.116 106.2)
XYZxyz(33.3594, 38.3862, 12.4881)
Luminance0.3839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA4C #4C51AF
analogous
#AF794C #AFAA4C #83AF4C
triadic
#AFAA4C #4CAFAA #AA4CAF
tetradic
#AFAA4C #4CAF79 #4C51AF #AF4C83
square
#AFAA4C #4CAF79 #4C51AF #AF4C83
split-complementary
#AFAA4C #4C83AF #794CAF
monochromatic
#5A5727 #848139 #AFAA4C #C3BF75 #D6D3A0

Accessibility & contrast

On white

2.42
#AFAA4C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#AFAA4C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA4C
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA4C#FFFFFF#000000##000000
##AFAA4C1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A442
Deuteranopia (green-blind)
#B9A851
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa4c;
/* rgb */ color: rgb(175, 170, 76);
/* oklch */ color: oklch(72.3% 0.116 106.2);
Tailwind
colors: {
  custom: {
    50: '#c9c381',
    500: '#afaa4c',
    950: '#000000',
  },
}
SCSS
$custom: #afaa4c;
$custom-light: #c9c381;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa4c",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 76
  },
  "hsl": {
    "h": 56.97,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.72307,
    "c": 0.11646,
    "h": 106.2
  },
  "luminance": 0.38385
}

Semantic roles & 50–950 ramp

primary
#AFAA4C
secondary
#9497C2
accent
#5ECF58
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA4C

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

Preview Lab → · Contrast checker → · Palette generator →

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