#AFC841#AFC841

#AFC841 is a light, vivid yellow-green. Relative luminance 0.508; OKLCH L 78.9% C 0.160 H 119.3°. Best body text is #000000 at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#AFC841
RGBrgb(175, 200, 65)
HSLhsl(71, 55%, 52%)
HSVhsv(71, 68%, 78%)
CMYKcmyk(12.5%, 0%, 67.5%, 21.6%)
CIE-LABlab(76.56, -26.51, 61.77)
CIE-LCHlch(76.56, 67.22, 113.22°)
OKLaboklab(78.89% -0.078 0.1392)
OKLCHoklch(78.89% 0.16 119.3)
XYZxyz(39.2883, 50.8044, 12.7365)
Luminance0.5080 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC841 #5A41C8
analogous
#C89E41 #AFC841 #6CC841
triadic
#AFC841 #41AFC8 #C841AF
tetradic
#AFC841 #41C89E #5A41C8 #C8416C
square
#AFC841 #41C89E #5A41C8 #C8416C
split-complementary
#AFC841 #416CC8 #9E41C8
monochromatic
#606F20 #899E2E #AFC841 #C3D670 #D7E3A0

Accessibility & contrast

On white

1.88
#AFC841 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.16
#AFC841 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC841
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC841#FFFFFF#000000##000000
##AFC8411.001.8811.1611.16
#FFFFFF1.881.0021.0021.00
#00000011.1621.001.001.00
##00000011.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2D
Deuteranopia (green-blind)
#D2BD4B
Tritanopia (blue-blind)
#B9BDAD
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #afc841;
/* rgb */ color: rgb(175, 200, 65);
/* oklch */ color: oklch(78.9% 0.160 119.3);
Tailwind
colors: {
  custom: {
    50: '#cad87d',
    500: '#afc841',
    950: '#000000',
  },
}
SCSS
$custom: #afc841;
$custom-light: #cad87d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc841",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 65
  },
  "hsl": {
    "h": 71.111,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.78885,
    "c": 0.15955,
    "h": 119.3
  },
  "luminance": 0.50804
}

Semantic roles & 50–950 ramp

primary
#AFC841
secondary
#423578
accent
#49DE65
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #AFC841

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

Preview Lab → · Contrast checker → · Palette generator →

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