#AFC845#AFC845

#AFC845 is a light, vivid yellow-green. Relative luminance 0.509; OKLCH L 78.9% C 0.157 H 119.4°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#AFC845
RGBrgb(175, 200, 69)
HSLhsl(71, 54%, 53%)
HSVhsv(71, 66%, 78%)
CMYKcmyk(12.5%, 0%, 65.5%, 21.6%)
CIE-LABlab(76.59, -26.26, 60.23)
CIE-LCHlch(76.59, 65.71, 113.55°)
OKLaboklab(78.92% -0.077 0.1365)
OKLCHoklch(78.92% 0.157 119.4)
XYZxyz(39.4083, 50.8524, 13.3685)
Luminance0.5085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC845 #5E45C8
analogous
#C89F45 #AFC845 #6EC845
triadic
#AFC845 #45AFC8 #C845AF
tetradic
#AFC845 #45C89F #5E45C8 #C8456E
square
#AFC845 #45C89F #5E45C8 #C8456E
split-complementary
#AFC845 #456EC8 #9F45C8
monochromatic
#627121 #8BA02F #AFC845 #C3D674 #D8E4A3

Accessibility & contrast

On white

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

On black

11.17
#AFC845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC845
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC845#FFFFFF#000000##000000
##AFC8451.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD33
Deuteranopia (green-blind)
#D1BD4F
Tritanopia (blue-blind)
#B9BEAD
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #afc845;
/* rgb */ color: rgb(175, 200, 69);
/* oklch */ color: oklch(78.9% 0.157 119.4);
Tailwind
colors: {
  custom: {
    50: '#cad87f',
    500: '#afc845',
    950: '#000000',
  },
}
SCSS
$custom: #afc845;
$custom-light: #cad87f;
$custom-dark: #000000;
JSON
{
  "hex": "#afc845",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 69
  },
  "hsl": {
    "h": 71.45,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.78918,
    "c": 0.15671,
    "h": 119.4
  },
  "luminance": 0.50852
}

Semantic roles & 50–950 ramp

primary
#AFC845
secondary
#44377A
accent
#4ADE66
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140B
muted
#83837E

Preview Lab

Preview with #AFC845

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

Preview Lab → · Contrast checker → · Palette generator →

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