#AFCF51#AFCF51

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

Color values

HEX#AFCF51
RGBrgb(175, 207, 81)
HSLhsl(75, 57%, 56%)
HSVhsv(75, 61%, 81%)
CMYKcmyk(15.5%, 0%, 60.9%, 18.8%)
CIE-LABlab(78.66, -28.75, 57.47)
CIE-LCHlch(78.66, 64.26, 116.57°)
OKLaboklab(80.61% -0.0827 0.1323)
OKLCHoklch(80.61% 0.156 122)
XYZxyz(41.4776, 54.3336, 16.0853)
Luminance0.5433 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCF51 #7151CF
analogous
#CFB051 #AFCF51 #70CF51
triadic
#AFCF51 #51AFCF #CF51AF
tetradic
#AFCF51 #51CFB0 #7151CF #CF5170
square
#AFCF51 #51CFB0 #7151CF #CF5170
split-complementary
#AFCF51 #5170CF #B051CF
monochromatic
#6A8224 #91B231 #AFCF51 #C5DC81 #DBE9B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFCF51#FFFFFF#000000##000000
##AFCF511.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)
#DBC342
Deuteranopia (green-blind)
#D6C35A
Tritanopia (blue-blind)
#B7C5B4
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afcf51;
/* rgb */ color: rgb(175, 207, 81);
/* oklch */ color: oklch(80.6% 0.156 122.0);
Tailwind
colors: {
  custom: {
    50: '#cadd87',
    500: '#afcf51',
    950: '#000000',
  },
}
SCSS
$custom: #afcf51;
$custom-light: #cadd87;
$custom-dark: #000000;
JSON
{
  "hex": "#afcf51",
  "rgb": {
    "r": 175,
    "g": 207,
    "b": 81
  },
  "hsl": {
    "h": 75.238,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80612,
    "c": 0.15602,
    "h": 122
  },
  "luminance": 0.54334
}

Semantic roles & 50–950 ramp

primary
#AFCF51
secondary
#4F3B89
accent
#48E06E
background
#FEFEFC
surface
#FBFCF3
border
#D4D5CD
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFCF51

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

Preview Lab → · Contrast checker → · Palette generator →

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