#AFAA4D#AFAA4D

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

Color values

HEX#AFAA4D
RGBrgb(175, 170, 77)
HSLhsl(57, 39%, 49%)
HSVhsv(57, 56%, 69%)
CMYKcmyk(0%, 2.9%, 56%, 31.4%)
CIE-LABlab(68.31, -10.61, 47.72)
CIE-LCHlch(68.31, 48.89, 102.53°)
OKLaboklab(72.32% -0.0321 0.111)
OKLCHoklch(72.32% 0.116 106.1)
XYZxyz(33.3945, 38.4003, 12.6726)
Luminance0.3840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA4D #4D52AF
analogous
#AF794D #AFAA4D #83AF4D
triadic
#AFAA4D #4DAFAA #AA4DAF
tetradic
#AFAA4D #4DAF79 #4D52AF #AF4D83
square
#AFAA4D #4DAF79 #4D52AF #AF4D83
split-complementary
#AFAA4D #4D83AF #794DAF
monochromatic
#5A5728 #85813A #AFAA4D #C3BF76 #D6D3A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA4D#FFFFFF#000000##000000
##AFAA4D1.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)
#B7A444
Deuteranopia (green-blind)
#B9A852
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afaa4d;
/* rgb */ color: rgb(175, 170, 77);
/* oklch */ color: oklch(72.3% 0.116 106.1);
Tailwind
colors: {
  custom: {
    50: '#c9c382',
    500: '#afaa4d',
    950: '#000000',
  },
}
SCSS
$custom: #afaa4d;
$custom-light: #c9c382;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa4d",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 77
  },
  "hsl": {
    "h": 56.939,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.72318,
    "c": 0.11553,
    "h": 106.1
  },
  "luminance": 0.38399
}

Semantic roles & 50–950 ramp

primary
#AFAA4D
secondary
#9598C3
accent
#5FCF59
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFAA4D

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

Preview Lab → · Contrast checker → · Palette generator →

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