#AFA440#AFA440

#AFA440 is a light, vivid yellow. Relative luminance 0.360; OKLCH L 70.9% C 0.121 H 103.0°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#AFA440
RGBrgb(175, 164, 64)
HSLhsl(54, 46%, 47%)
HSVhsv(54, 63%, 69%)
CMYKcmyk(0%, 6.3%, 63.4%, 31.4%)
CIE-LABlab(66.55, -8.40, 51.71)
CIE-LCHlch(66.55, 52.39, 99.23°)
OKLaboklab(70.87% -0.0273 0.1178)
OKLCHoklch(70.87% 0.121 103)
XYZxyz(31.8813, 36.0363, 10.1258)
Luminance0.3604 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA440 #404BAF
analogous
#AF6D40 #AFA440 #83AF40
triadic
#AFA440 #40AFA4 #A440AF
tetradic
#AFA440 #40AF6D #404BAF #AF4083
square
#AFA440 #40AF6D #404BAF #AF4083
split-complementary
#AFA440 #4083AF #6D40AF
monochromatic
#55501F #827A30 #AFA440 #C7BD65 #D7D092

Accessibility & contrast

On white

2.56
#AFA440 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#AFA440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA440
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA440#FFFFFF#000000##000000
##AFA4401.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F34
Deuteranopia (green-blind)
#B6A446
Tritanopia (blue-blind)
#BC998F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa440;
/* rgb */ color: rgb(175, 164, 64);
/* oklch */ color: oklch(70.9% 0.121 103.0);
Tailwind
colors: {
  custom: {
    50: '#cabe79',
    500: '#afa440',
    950: '#000000',
  },
}
SCSS
$custom: #afa440;
$custom-light: #cabe79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa440",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 64
  },
  "hsl": {
    "h": 54.054,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70873,
    "c": 0.1209,
    "h": 103
  },
  "luminance": 0.36035
}

Semantic roles & 50–950 ramp

primary
#AFA440
secondary
#888EC3
accent
#5FD652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA440

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

Preview Lab → · Contrast checker → · Palette generator →

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