#AFC442#AFC442

#AFC442 is a light, vivid yellow. Relative luminance 0.490; OKLCH L 78.0% C 0.154 H 118.0°. Best body text is #000000 at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#AFC442
RGBrgb(175, 196, 66)
HSLhsl(70, 52%, 51%)
HSVhsv(70, 66%, 77%)
CMYKcmyk(10.7%, 0%, 66.3%, 23.1%)
CIE-LABlab(75.44, -24.51, 60.24)
CIE-LCHlch(75.44, 65.03, 112.14°)
OKLaboklab(77.99% -0.0724 0.1361)
OKLCHoklch(77.99% 0.154 118)
XYZxyz(38.4033, 48.9875, 12.5856)
Luminance0.4899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC442 #5742C4
analogous
#C49842 #AFC442 #6EC442
triadic
#AFC442 #42AFC4 #C442AF
tetradic
#AFC442 #42C498 #5742C4 #C4426E
square
#AFC442 #42C498 #5742C4 #C4426E
split-complementary
#AFC442 #426EC4 #9842C4
monochromatic
#5F6A21 #889930 #AFC442 #C3D371 #D6E19F

Accessibility & contrast

On white

1.94
#AFC442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.80
#AFC442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC442
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC442#FFFFFF#000000##000000
##AFC4421.001.9410.8010.80
#FFFFFF1.941.0021.0021.00
#00000010.8021.001.001.00
##00000010.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#CEBA4C
Tritanopia (blue-blind)
#B9BAAA
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #afc442;
/* rgb */ color: rgb(175, 196, 66);
/* oklch */ color: oklch(78.0% 0.154 118.0);
Tailwind
colors: {
  custom: {
    50: '#cad57d',
    500: '#afc442',
    950: '#000000',
  },
}
SCSS
$custom: #afc442;
$custom-light: #cad57d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc442",
  "rgb": {
    "r": 175,
    "g": 196,
    "b": 66
  },
  "hsl": {
    "h": 69.692,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.77989,
    "c": 0.15413,
    "h": 118
  },
  "luminance": 0.48987
}

Semantic roles & 50–950 ramp

primary
#AFC442
secondary
#9E94CE
accent
#4CDC63
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC442

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

Preview Lab → · Contrast checker → · Palette generator →

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