#AFCD38#AFCD38

#AFCD38 is a light, vivid yellow-green. Relative luminance 0.531; OKLCH L 80.0% C 0.171 H 120.5°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#AFCD38
RGBrgb(175, 205, 56)
HSLhsl(72, 60%, 51%)
HSVhsv(72, 73%, 80%)
CMYKcmyk(14.6%, 0%, 72.7%, 19.6%)
CIE-LABlab(77.91, -29.40, 66.39)
CIE-LCHlch(77.91, 72.61, 113.88°)
OKLaboklab(79.96% -0.0868 0.1475)
OKLCHoklch(79.96% 0.171 120.5)
XYZxyz(40.2250, 53.0622, 11.8635)
Luminance0.5306 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCD38 #5638CD
analogous
#CDA138 #AFCD38 #64CD38
triadic
#AFCD38 #38AFCD #CD38AF
tetradic
#AFCD38 #38CDA1 #5638CD #CD3864
square
#AFCD38 #38CDA1 #5638CD #CD3864
split-complementary
#AFCD38 #3864CD #A138CD
monochromatic
#5E6F1C #88A028 #AFCD38 #C3D969 #D6E69A

Accessibility & contrast

On white

1.81
#AFCD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#AFCD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCD38
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCD38#FFFFFF#000000##000000
##AFCD381.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC11A
Deuteranopia (green-blind)
#D6C145
Tritanopia (blue-blind)
#B9C2B0
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #afcd38;
/* rgb */ color: rgb(175, 205, 56);
/* oklch */ color: oklch(80.0% 0.171 120.5);
Tailwind
colors: {
  custom: {
    50: '#cadc79',
    500: '#afcd38',
    950: '#000000',
  },
}
SCSS
$custom: #afcd38;
$custom-light: #cadc79;
$custom-dark: #000000;
JSON
{
  "hex": "#afcd38",
  "rgb": {
    "r": 175,
    "g": 205,
    "b": 56
  },
  "hsl": {
    "h": 72.081,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79955,
    "c": 0.17111,
    "h": 120.5
  },
  "luminance": 0.53062
}

Semantic roles & 50–950 ramp

primary
#AFCD38
secondary
#3F3178
accent
#45E365
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCD38

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

Preview Lab → · Contrast checker → · Palette generator →

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