#AFCC38#AFCC38

#AFCC38 is a light, vivid yellow-green. Relative luminance 0.526; OKLCH L 79.7% C 0.170 H 120.2°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#AFCC38
RGBrgb(175, 204, 56)
HSLhsl(72, 59%, 51%)
HSVhsv(72, 73%, 80%)
CMYKcmyk(14.2%, 0%, 72.5%, 20%)
CIE-LABlab(77.63, -28.92, 66.12)
CIE-LCHlch(77.63, 72.17, 113.63°)
OKLaboklab(79.73% -0.0855 0.1469)
OKLCHoklch(79.73% 0.17 120.2)
XYZxyz(39.9866, 52.5854, 11.7841)
Luminance0.5259 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCC38 #5538CC
analogous
#CC9F38 #AFCC38 #65CC38
triadic
#AFCC38 #38AFCC #CC38AF
tetradic
#AFCC38 #38CC9F #5538CC #CC3865
square
#AFCC38 #38CC9F #5538CC #CC3865
split-complementary
#AFCC38 #3865CC #9F38CC
monochromatic
#5E6E1C #879E29 #AFCC38 #C3D869 #D6E599

Accessibility & contrast

On white

1.82
#AFCC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#AFCC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCC38
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCC38#FFFFFF#000000##000000
##AFCC381.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C01B
Deuteranopia (green-blind)
#D5C045
Tritanopia (blue-blind)
#B9C1B0
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #afcc38;
/* rgb */ color: rgb(175, 204, 56);
/* oklch */ color: oklch(79.7% 0.170 120.2);
Tailwind
colors: {
  custom: {
    50: '#cadb79',
    500: '#afcc38',
    950: '#000000',
  },
}
SCSS
$custom: #afcc38;
$custom-light: #cadb79;
$custom-dark: #000000;
JSON
{
  "hex": "#afcc38",
  "rgb": {
    "r": 175,
    "g": 204,
    "b": 56
  },
  "hsl": {
    "h": 71.757,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.79727,
    "c": 0.16996,
    "h": 120.2
  },
  "luminance": 0.52585
}

Semantic roles & 50–950 ramp

primary
#AFCC38
secondary
#3F3177
accent
#45E264
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCC38

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

Preview Lab → · Contrast checker → · Palette generator →

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