#AFC02F#AFC02F

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

Color values

HEX#AFC02F
RGBrgb(175, 192, 47)
HSLhsl(67, 61%, 47%)
HSVhsv(67, 76%, 75%)
CMYKcmyk(8.9%, 0%, 75.5%, 24.7%)
CIE-LABlab(74.20, -23.58, 65.85)
CIE-LCHlch(74.20, 69.94, 109.70°)
OKLaboklab(76.95% -0.0715 0.1448)
OKLCHoklch(76.95% 0.162 116.3)
XYZxyz(37.0429, 47.0190, 9.8130)
Luminance0.4702 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC02F #402FC0
analogous
#C0882F #AFC02F #67C02F
triadic
#AFC02F #2FAFC0 #C02FAF
tetradic
#AFC02F #2FC088 #402FC0 #C02F67
square
#AFC02F #2FC088 #402FC0 #C02F67
split-complementary
#AFC02F #2F67C0 #882FC0
monochromatic
#555E17 #828F23 #AFC02F #C7D656 #D7E288

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC02F#FFFFFF#000000##000000
##AFC02F1.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)
#CEB609
Deuteranopia (green-blind)
#CCB73C
Tritanopia (blue-blind)
#BAB5A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afc02f;
/* rgb */ color: rgb(175, 192, 47);
/* oklch */ color: oklch(77.0% 0.162 116.3);
Tailwind
colors: {
  custom: {
    50: '#cbd273',
    500: '#afc02f',
    950: '#000000',
  },
}
SCSS
$custom: #afc02f;
$custom-light: #cbd273;
$custom-dark: #000000;
JSON
{
  "hex": "#afc02f",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 47
  },
  "hsl": {
    "h": 67.034,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.76954,
    "c": 0.1615,
    "h": 116.3
  },
  "luminance": 0.47018
}

Semantic roles & 50–950 ramp

primary
#AFC02F
secondary
#887FCB
accent
#44E457
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC02F

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

Preview Lab → · Contrast checker → · Palette generator →

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