#AFCE38#AFCE38

#AFCE38 is a light, vivid yellow-green. Relative luminance 0.535; OKLCH L 80.2% C 0.172 H 120.8°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#AFCE38
RGBrgb(175, 206, 56)
HSLhsl(72, 60%, 51%)
HSVhsv(72, 73%, 81%)
CMYKcmyk(15%, 0%, 72.8%, 19.2%)
CIE-LABlab(78.19, -29.87, 66.66)
CIE-LCHlch(78.19, 73.05, 114.13°)
OKLaboklab(80.18% -0.0881 0.148)
OKLCHoklch(80.18% 0.172 120.8)
XYZxyz(40.4650, 53.5422, 11.9435)
Luminance0.5354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCE38 #5738CE
analogous
#CEA238 #AFCE38 #64CE38
triadic
#AFCE38 #38AFCE #CE38AF
tetradic
#AFCE38 #38CEA2 #5738CE #CE3864
square
#AFCE38 #38CEA2 #5738CE #CE3864
split-complementary
#AFCE38 #3864CE #A238CE
monochromatic
#5F701C #88A128 #AFCE38 #C3DA69 #D6E69A

Accessibility & contrast

On white

1.79
#AFCE38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.71
#AFCE38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCE38
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCE38#FFFFFF#000000##000000
##AFCE381.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC21A
Deuteranopia (green-blind)
#D7C245
Tritanopia (blue-blind)
#B9C3B1
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #afce38;
/* rgb */ color: rgb(175, 206, 56);
/* oklch */ color: oklch(80.2% 0.172 120.8);
Tailwind
colors: {
  custom: {
    50: '#cadd79',
    500: '#afce38',
    950: '#000000',
  },
}
SCSS
$custom: #afce38;
$custom-light: #cadd79;
$custom-dark: #000000;
JSON
{
  "hex": "#afce38",
  "rgb": {
    "r": 175,
    "g": 206,
    "b": 56
  },
  "hsl": {
    "h": 72.4,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.80182,
    "c": 0.17226,
    "h": 120.8
  },
  "luminance": 0.53542
}

Semantic roles & 50–950 ramp

primary
#AFCE38
secondary
#403179
accent
#44E465
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCE38

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

Preview Lab → · Contrast checker → · Palette generator →

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