#AFAA4A#AFAA4A

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

Color values

HEX#AFAA4A
RGBrgb(175, 170, 74)
HSLhsl(57, 41%, 49%)
HSVhsv(57, 58%, 69%)
CMYKcmyk(0%, 2.9%, 57.7%, 31.4%)
CIE-LABlab(68.28, -10.84, 49.09)
CIE-LCHlch(68.28, 50.27, 102.46°)
OKLaboklab(72.28% -0.0331 0.1136)
OKLCHoklch(72.28% 0.118 106.2)
XYZxyz(33.2910, 38.3589, 12.1276)
Luminance0.3836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA4A #4A4FAF
analogous
#AF784A #AFAA4A #82AF4A
triadic
#AFAA4A #4AAFAA #AA4AAF
tetradic
#AFAA4A #4AAF78 #4A4FAF #AF4A82
square
#AFAA4A #4AAF78 #4A4FAF #AF4A82
split-complementary
#AFAA4A #4A82AF #784AAF
monochromatic
#595626 #848038 #AFAA4A #C4C073 #D6D39E

Accessibility & contrast

On white

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

On black

8.67
#AFAA4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA4A
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA4A#FFFFFF#000000##000000
##AFAA4A1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afaa4a;
/* rgb */ color: rgb(175, 170, 74);
/* oklch */ color: oklch(72.3% 0.118 106.2);
Tailwind
colors: {
  custom: {
    50: '#c9c380',
    500: '#afaa4a',
    950: '#000000',
  },
}
SCSS
$custom: #afaa4a;
$custom-light: #c9c380;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa4a",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 74
  },
  "hsl": {
    "h": 57.03,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.72284,
    "c": 0.11829,
    "h": 106.2
  },
  "luminance": 0.38358
}

Semantic roles & 50–950 ramp

primary
#AFAA4A
secondary
#9295C2
accent
#5DD057
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAA4A

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

Preview Lab → · Contrast checker → · Palette generator →

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