#AFAE40#AFAE40

#AFAE40 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.1% C 0.131 H 108.7°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#AFAE40
RGBrgb(175, 174, 64)
HSLhsl(59, 46%, 47%)
HSVhsv(59, 63%, 69%)
CMYKcmyk(0%, 0.6%, 63.4%, 31.4%)
CIE-LABlab(69.30, -13.62, 54.64)
CIE-LCHlch(69.30, 56.31, 104.00°)
OKLaboklab(73.06% -0.0421 0.124)
OKLCHoklch(73.06% 0.131 108.7)
XYZxyz(33.7417, 39.7572, 10.7460)
Luminance0.3976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE40 #4041AF
analogous
#AF7640 #AFAE40 #79AF40
triadic
#AFAE40 #40AFAE #AE40AF
tetradic
#AFAE40 #40AF76 #4041AF #AF4079
square
#AFAE40 #40AF76 #4041AF #AF4079
split-complementary
#AFAE40 #4079AF #7640AF
monochromatic
#55551F #828130 #AFAE40 #C7C665 #D7D792

Accessibility & contrast

On white

2.35
#AFAE40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#AFAE40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE40
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE40#FFFFFF#000000##000000
##AFAE401.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA732
Deuteranopia (green-blind)
#BDAB47
Tritanopia (blue-blind)
#BBA397
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae40;
/* rgb */ color: rgb(175, 174, 64);
/* oklch */ color: oklch(73.1% 0.131 108.7);
Tailwind
colors: {
  custom: {
    50: '#cac57a',
    500: '#afae40',
    950: '#000000',
  },
}
SCSS
$custom: #afae40;
$custom-light: #cac57a;
$custom-dark: #000000;
JSON
{
  "hex": "#afae40",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 64
  },
  "hsl": {
    "h": 59.459,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73062,
    "c": 0.13091,
    "h": 108.7
  },
  "luminance": 0.39756
}

Semantic roles & 50–950 ramp

primary
#AFAE40
secondary
#8889C3
accent
#53D652
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAE40

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

Preview Lab → · Contrast checker → · Palette generator →

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