#AFC02C#AFC02C

#AFC02C is a light, vivid yellow. Relative luminance 0.470; OKLCH L 76.9% C 0.163 H 116.2°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#AFC02C
RGBrgb(175, 192, 44)
HSLhsl(67, 63%, 46%)
HSVhsv(67, 77%, 75%)
CMYKcmyk(8.9%, 0%, 77.1%, 24.7%)
CIE-LABlab(74.19, -23.71, 66.77)
CIE-LCHlch(74.19, 70.86, 109.55°)
OKLaboklab(76.94% -0.0721 0.1462)
OKLCHoklch(76.94% 0.163 116.2)
XYZxyz(36.9845, 46.9956, 9.5051)
Luminance0.4699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC02C #3D2CC0
analogous
#C0872C #AFC02C #65C02C
triadic
#AFC02C #2CAFC0 #C02CAF
tetradic
#AFC02C #2CC087 #3D2CC0 #C02C65
square
#AFC02C #2CC087 #3D2CC0 #C02C65
split-complementary
#AFC02C #2C65C0 #872CC0
monochromatic
#545C15 #828E21 #AFC02C #C8D752 #D8E384

Accessibility & contrast

On white

2.02
#AFC02C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.40
#AFC02C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC02C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC02C#FFFFFF#000000##000000
##AFC02C1.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB600
Deuteranopia (green-blind)
#CCB73A
Tritanopia (blue-blind)
#BAB5A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afc02c;
/* rgb */ color: rgb(175, 192, 44);
/* oklch */ color: oklch(76.9% 0.163 116.2);
Tailwind
colors: {
  custom: {
    50: '#cbd272',
    500: '#afc02c',
    950: '#000000',
  },
}
SCSS
$custom: #afc02c;
$custom-light: #cbd272;
$custom-dark: #000000;
JSON
{
  "hex": "#afc02c",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 44
  },
  "hsl": {
    "h": 66.892,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.76937,
    "c": 0.16305,
    "h": 116.2
  },
  "luminance": 0.46995
}

Semantic roles & 50–950 ramp

primary
#AFC02C
secondary
#857CCC
accent
#42E655
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC02C

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

Preview Lab → · Contrast checker → · Palette generator →

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