#AFDF48#AFDF48

#AFDF48 is a very light, vivid yellow-green. Relative luminance 0.624; OKLCH L 84.2% C 0.182 H 125.4°. Best body text is #000000 at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#AFDF48
RGBrgb(175, 223, 72)
HSLhsl(79, 70%, 58%)
HSVhsv(79, 68%, 87%)
CMYKcmyk(21.5%, 0%, 67.7%, 12.5%)
CIE-LABlab(83.10, -36.79, 65.81)
CIE-LCHlch(83.10, 75.39, 119.21°)
OKLaboklab(84.18% -0.1058 0.1487)
OKLCHoklch(84.18% 0.182 125.4)
XYZxyz(45.2368, 62.3566, 15.7824)
Luminance0.6236 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF48 #7848DF
analogous
#DFC448 #AFDF48 #63DF48
triadic
#AFDF48 #48AFDF #DF48AF
tetradic
#AFDF48 #48DFC4 #7848DF #DF4863
square
#AFDF48 #48DFC4 #7848DF #DF4863
split-complementary
#AFDF48 #4863DF #C448DF
monochromatic
#6C931A #93C723 #AFDF48 #C6E87C #DDF1B0

Accessibility & contrast

On white

1.56
#AFDF48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.47
#AFDF48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF48
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF48#FFFFFF#000000##000000
##AFDF481.001.5613.4713.47
#FFFFFF1.561.0021.0021.00
#00000013.4721.001.001.00
##00000013.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD131
Deuteranopia (green-blind)
#E4CE54
Tritanopia (blue-blind)
#B6D5C1
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf48;
/* rgb */ color: rgb(175, 223, 72);
/* oklch */ color: oklch(84.2% 0.182 125.4);
Tailwind
colors: {
  custom: {
    50: '#cae983',
    500: '#afdf48',
    950: '#000000',
  },
}
SCSS
$custom: #afdf48;
$custom-light: #cae983;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf48",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 72
  },
  "hsl": {
    "h": 79.073,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8418,
    "c": 0.18246,
    "h": 125.4
  },
  "luminance": 0.62357
}

Semantic roles & 50–950 ramp

primary
#AFDF48
secondary
#533498
accent
#3BED73
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14160B
muted
#83847E

Preview Lab

Preview with #AFDF48

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

Preview Lab → · Contrast checker → · Palette generator →

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