#AFC040#AFC040

#AFC040 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.1% C 0.151 H 116.6°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#AFC040
RGBrgb(175, 192, 64)
HSLhsl(68, 50%, 50%)
HSVhsv(68, 67%, 75%)
CMYKcmyk(8.9%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.31, -22.68, 59.86)
CIE-LCHlch(74.31, 64.01, 110.75°)
OKLaboklab(77.07% -0.0675 0.135)
OKLCHoklch(77.07% 0.151 116.6)
XYZxyz(37.4551, 47.1839, 11.9838)
Luminance0.4718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC040 #5140C0
analogous
#C09140 #AFC040 #6FC040
triadic
#AFC040 #40AFC0 #C040AF
tetradic
#AFC040 #40C091 #5140C0 #C0406F
square
#AFC040 #40C091 #5140C0 #C0406F
split-complementary
#AFC040 #406FC0 #9140C0
monochromatic
#5C6421 #859230 #AFC040 #C2CF6E #D6DE9C

Accessibility & contrast

On white

2.01
#AFC040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#AFC040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC040
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC040#FFFFFF#000000##000000
##AFC0401.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#CBB849
Tritanopia (blue-blind)
#BAB5A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc040;
/* rgb */ color: rgb(175, 192, 64);
/* oklch */ color: oklch(77.1% 0.151 116.6);
Tailwind
colors: {
  custom: {
    50: '#cad27c',
    500: '#afc040',
    950: '#000000',
  },
}
SCSS
$custom: #afc040;
$custom-light: #cad27c;
$custom-dark: #000000;
JSON
{
  "hex": "#afc040",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 67.969,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77072,
    "c": 0.1509,
    "h": 116.6
  },
  "luminance": 0.47183
}

Semantic roles & 50–950 ramp

primary
#AFC040
secondary
#9991CB
accent
#4EDA60
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC040

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

Preview Lab → · Contrast checker → · Palette generator →

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