#AFC02B#AFC02B

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

Color values

HEX#AFC02B
RGBrgb(175, 192, 43)
HSLhsl(67, 63%, 46%)
HSVhsv(67, 78%, 75%)
CMYKcmyk(8.9%, 0%, 77.6%, 24.7%)
CIE-LABlab(74.18, -23.75, 67.07)
CIE-LCHlch(74.18, 71.15, 109.50°)
OKLaboklab(76.93% -0.0723 0.1467)
OKLCHoklch(76.93% 0.164 116.2)
XYZxyz(36.9659, 46.9882, 9.4073)
Luminance0.4699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC02B #3C2BC0
analogous
#C0862B #AFC02B #64C02B
triadic
#AFC02B #2BAFC0 #C02BAF
tetradic
#AFC02B #2BC086 #3C2BC0 #C02B64
square
#AFC02B #2BC086 #3C2BC0 #C02B64
split-complementary
#AFC02B #2B64C0 #862BC0
monochromatic
#545C15 #818E20 #AFC02B #C8D850 #D8E382

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC02B#FFFFFF#000000##000000
##AFC02B1.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)
#CCB739
Tritanopia (blue-blind)
#BAB5A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afc02b;
/* rgb */ color: rgb(175, 192, 43);
/* oklch */ color: oklch(76.9% 0.164 116.2);
Tailwind
colors: {
  custom: {
    50: '#cbd271',
    500: '#afc02b',
    950: '#000000',
  },
}
SCSS
$custom: #afc02b;
$custom-light: #cbd271;
$custom-dark: #000000;
JSON
{
  "hex": "#afc02b",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 43
  },
  "hsl": {
    "h": 66.846,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.76932,
    "c": 0.16354,
    "h": 116.2
  },
  "luminance": 0.46988
}

Semantic roles & 50–950 ramp

primary
#AFC02B
secondary
#847BCC
accent
#41E654
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFC02B

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

Preview Lab → · Contrast checker → · Palette generator →

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