#AFCF30#AFCF30

#AFCF30 is a light, vivid yellow-green. Relative luminance 0.540; OKLCH L 80.4% C 0.178 H 120.8°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#AFCF30
RGBrgb(175, 207, 48)
HSLhsl(72, 62%, 50%)
HSVhsv(72, 77%, 81%)
CMYKcmyk(15.5%, 0%, 76.8%, 18.8%)
CIE-LABlab(78.43, -30.71, 69.46)
CIE-LCHlch(78.43, 75.95, 113.85°)
OKLaboklab(80.36% -0.0911 0.1526)
OKLCHoklch(80.36% 0.178 120.8)
XYZxyz(40.5263, 53.9531, 11.0747)
Luminance0.5395 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF30 #5030CF
analogous
#CF9F30 #AFCF30 #60CF30
triadic
#AFCF30 #30AFCF #CF30AF
tetradic
#AFCF30 #30CF9F #5030CF #CF3060
square
#AFCF30 #30CF9F #5030CF #CF3060
split-complementary
#AFCF30 #3060CF #9F30CF
monochromatic
#5B6C19 #859D24 #AFCF30 #C2DB62 #D5E693

Accessibility & contrast

On white

1.78
#AFCF30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#AFCF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF30
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF30#FFFFFF#000000##000000
##AFCF301.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC300
Deuteranopia (green-blind)
#D8C23F
Tritanopia (blue-blind)
#B9C4B1
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #afcf30;
/* rgb */ color: rgb(175, 207, 48);
/* oklch */ color: oklch(80.4% 0.178 120.8);
Tailwind
colors: {
  custom: {
    50: '#cbdd75',
    500: '#afcf30',
    950: '#000000',
  },
}
SCSS
$custom: #afcf30;
$custom-light: #cbdd75;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf30",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 48
  },
  "hsl": {
    "h": 72.075,
    "s": 62.353,
    "l": 50
  },
  "oklch": {
    "l": 0.80363,
    "c": 0.17772,
    "h": 120.8
  },
  "luminance": 0.53953
}

Semantic roles & 50–950 ramp

primary
#AFCF30
secondary
#3C2E75
accent
#42E563
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFCF30

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

Preview Lab → · Contrast checker → · Palette generator →

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