#AFCF38#AFCF38

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

Color values

HEX#AFCF38
RGBrgb(175, 207, 56)
HSLhsl(73, 61%, 52%)
HSVhsv(73, 73%, 81%)
CMYKcmyk(15.5%, 0%, 72.9%, 18.8%)
CIE-LABlab(78.48, -30.34, 66.94)
CIE-LCHlch(78.48, 73.49, 114.38°)
OKLaboklab(80.41% -0.0894 0.1486)
OKLCHoklch(80.41% 0.173 121)
XYZxyz(40.7065, 54.0252, 12.0240)
Luminance0.5403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF38 #5838CF
analogous
#CFA438 #AFCF38 #64CF38
triadic
#AFCF38 #38AFCF #CF38AF
tetradic
#AFCF38 #38CFA4 #5838CF #CF3864
square
#AFCF38 #38CFA4 #5838CF #CF3864
split-complementary
#AFCF38 #3864CF #A438CF
monochromatic
#5F711B #88A327 #AFCF38 #C3DB69 #D7E79B

Accessibility & contrast

On white

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

On black

11.81
#AFCF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF38
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF38#FFFFFF#000000##000000
##AFCF381.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC319
Deuteranopia (green-blind)
#D8C245
Tritanopia (blue-blind)
#B9C4B2
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #afcf38;
/* rgb */ color: rgb(175, 207, 56);
/* oklch */ color: oklch(80.4% 0.173 121.0);
Tailwind
colors: {
  custom: {
    50: '#cbdd79',
    500: '#afcf38',
    950: '#000000',
  },
}
SCSS
$custom: #afcf38;
$custom-light: #cbdd79;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf38",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 56
  },
  "hsl": {
    "h": 72.715,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.8041,
    "c": 0.17343,
    "h": 121
  },
  "luminance": 0.54025
}

Semantic roles & 50–950 ramp

primary
#AFCF38
secondary
#40317A
accent
#44E466
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFCF38

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

Preview Lab → · Contrast checker → · Palette generator →

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