#AFCF52#AFCF52

#AFCF52 is a light, vivid yellow-green. Relative luminance 0.543; OKLCH L 80.6% C 0.155 H 122.1°. Best body text is #000000 at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#AFCF52
RGBrgb(175, 207, 82)
HSLhsl(75, 57%, 57%)
HSVhsv(75, 60%, 81%)
CMYKcmyk(15.5%, 0%, 60.4%, 18.8%)
CIE-LABlab(78.66, -28.67, 57.05)
CIE-LCHlch(78.66, 63.85, 116.68°)
OKLaboklab(80.62% -0.0824 0.1315)
OKLCHoklch(80.62% 0.155 122.1)
XYZxyz(41.5154, 54.3487, 16.2842)
Luminance0.5435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF52 #7252CF
analogous
#CFB152 #AFCF52 #71CF52
triadic
#AFCF52 #52AFCF #CF52AF
tetradic
#AFCF52 #52CFB1 #7252CF #CF5271
square
#AFCF52 #52CFB1 #7252CF #CF5271
split-complementary
#AFCF52 #5271CF #B152CF
monochromatic
#6A8224 #91B231 #AFCF52 #C5DC82 #DBEAB2

Accessibility & contrast

On white

1.77
#AFCF52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.87
#AFCF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCF52
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCF52#FFFFFF#000000##000000
##AFCF521.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC344
Deuteranopia (green-blind)
#D6C35B
Tritanopia (blue-blind)
#B7C5B4
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afcf52;
/* rgb */ color: rgb(175, 207, 82);
/* oklch */ color: oklch(80.6% 0.155 122.1);
Tailwind
colors: {
  custom: {
    50: '#c9dd87',
    500: '#afcf52',
    950: '#000000',
  },
}
SCSS
$custom: #afcf52;
$custom-light: #c9dd87;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf52",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 82
  },
  "hsl": {
    "h": 75.36,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80622,
    "c": 0.15521,
    "h": 122.1
  },
  "luminance": 0.54349
}

Semantic roles & 50–950 ramp

primary
#AFCF52
secondary
#503C8A
accent
#48E06F
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFCF52

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

Preview Lab → · Contrast checker → · Palette generator →

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