#AFC871#AFC871

#AFC871 is a light, moderate yellow-green. Relative luminance 0.516; OKLCH L 79.4% C 0.116 H 122.2°. Best body text is #000000 at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#AFC871
RGBrgb(175, 200, 113)
HSLhsl(77, 44%, 61%)
HSVhsv(77, 44%, 78%)
CMYKcmyk(12.5%, 0%, 43.5%, 21.6%)
CIE-LABlab(77.05, -22.32, 40.62)
CIE-LCHlch(77.05, 46.35, 118.79°)
OKLaboklab(79.44% -0.0619 0.0984)
OKLCHoklch(79.44% 0.116 122.2)
XYZxyz(41.3141, 51.6147, 23.4057)
Luminance0.5161 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC871 #8A71C8
analogous
#C8B671 #AFC871 #84C871
triadic
#AFC871 #71AFC8 #C871AF
tetradic
#AFC871 #71C8B6 #8A71C8 #C87184
square
#AFC871 #71C8B6 #8A71C8 #C87184
split-complementary
#AFC871 #7184C8 #B671C8
monochromatic
#718935 #96B646 #AFC871 #C8D99D #E1EAC9

Accessibility & contrast

On white

1.85
#AFC871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.32
#AFC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC871
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC871#FFFFFF#000000##000000
##AFC8711.001.8511.3211.32
#FFFFFF1.851.0021.0021.00
#00000011.3221.001.001.00
##00000011.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BF6A
Deuteranopia (green-blind)
#CEBE76
Tritanopia (blue-blind)
#B5C0B3
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afc871;
/* rgb */ color: rgb(175, 200, 113);
/* oklch */ color: oklch(79.4% 0.116 122.2);
Tailwind
colors: {
  custom: {
    50: '#c8d89b',
    500: '#afc871',
    950: '#000000',
  },
}
SCSS
$custom: #afc871;
$custom-light: #c8d89b;
$custom-dark: #000000;
JSON
{
  "hex": "#afc871",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 77.241,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.79436,
    "c": 0.11627,
    "h": 122.2
  },
  "luminance": 0.51615
}

Semantic roles & 50–950 ramp

primary
#AFC871
secondary
#604C91
accent
#2EB756
background
#FDFEFC
surface
#F9FBF5
border
#D2D4CF
text
#13140E
muted
#82837F

Preview Lab

Preview with #AFC871

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

Preview Lab → · Contrast checker → · Palette generator →

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