#AFAA4B#AFAA4B

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

Color values

HEX#AFAA4B
RGBrgb(175, 170, 75)
HSLhsl(57, 40%, 49%)
HSVhsv(57, 57%, 69%)
CMYKcmyk(0%, 2.9%, 57.1%, 31.4%)
CIE-LABlab(68.29, -10.77, 48.64)
CIE-LCHlch(68.29, 49.81, 102.48°)
OKLaboklab(72.3% -0.0327 0.1127)
OKLCHoklch(72.3% 0.117 106.2)
XYZxyz(33.3249, 38.3724, 12.3064)
Luminance0.3837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA4B #4B50AF
analogous
#AF784B #AFAA4B #82AF4B
triadic
#AFAA4B #4BAFAA #AA4BAF
tetradic
#AFAA4B #4BAF78 #4B50AF #AF4B82
square
#AFAA4B #4BAF78 #4B50AF #AF4B82
split-complementary
#AFAA4B #4B82AF #784BAF
monochromatic
#595726 #848039 #AFAA4B #C3BF74 #D6D39F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAA4B#FFFFFF#000000##000000
##AFAA4B1.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)
#B7A441
Deuteranopia (green-blind)
#B9A850
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa4b;
/* rgb */ color: rgb(175, 170, 75);
/* oklch */ color: oklch(72.3% 0.117 106.2);
Tailwind
colors: {
  custom: {
    50: '#c9c381',
    500: '#afaa4b',
    950: '#000000',
  },
}
SCSS
$custom: #afaa4b;
$custom-light: #c9c381;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa4b",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 75
  },
  "hsl": {
    "h": 57,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72295,
    "c": 0.11738,
    "h": 106.2
  },
  "luminance": 0.38371
}

Semantic roles & 50–950 ramp

primary
#AFAA4B
secondary
#9396C2
accent
#5ED058
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAA4B

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

Preview Lab → · Contrast checker → · Palette generator →

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