#AFAA4E#AFAA4E

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

Color values

HEX#AFAA4E
RGBrgb(175, 170, 78)
HSLhsl(57, 38%, 50%)
HSVhsv(57, 55%, 69%)
CMYKcmyk(0%, 2.9%, 55.4%, 31.4%)
CIE-LABlab(68.33, -10.53, 47.26)
CIE-LCHlch(68.33, 48.42, 102.56°)
OKLaboklab(72.33% -0.0317 0.1101)
OKLCHoklch(72.33% 0.115 106.1)
XYZxyz(33.4300, 38.4145, 12.8600)
Luminance0.3841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA4E #4E53AF
analogous
#AF7A4E #AFAA4E #84AF4E
triadic
#AFAA4E #4EAFAA #AA4EAF
tetradic
#AFAA4E #4EAF7A #4E53AF #AF4E84
square
#AFAA4E #4EAF7A #4E53AF #AF4E84
split-complementary
#AFAA4E #4E84AF #7A4EAF
monochromatic
#5A5828 #85813B #AFAA4E #C3BF78 #D6D3A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA4E#FFFFFF#000000##000000
##AFAA4E1.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)
#B7A445
Deuteranopia (green-blind)
#B9A853
Tritanopia (blue-blind)
#BAA096
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa4e;
/* rgb */ color: rgb(175, 170, 78);
/* oklch */ color: oklch(72.3% 0.115 106.1);
Tailwind
colors: {
  custom: {
    50: '#c9c383',
    500: '#afaa4e',
    950: '#000000',
  },
}
SCSS
$custom: #afaa4e;
$custom-light: #c9c383;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa4e",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 78
  },
  "hsl": {
    "h": 56.907,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.7233,
    "c": 0.1146,
    "h": 106.1
  },
  "luminance": 0.38413
}

Semantic roles & 50–950 ramp

primary
#AFAA4E
secondary
#9699C3
accent
#60CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA4E

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

Preview Lab → · Contrast checker → · Palette generator →

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