#AFD845#AFD845

#AFD845 is a very light, vivid yellow-green. Relative luminance 0.587; OKLCH L 82.6% C 0.176 H 123.8°. Best body text is #000000 at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#AFD845
RGBrgb(175, 216, 69)
HSLhsl(77, 65%, 56%)
HSVhsv(77, 68%, 85%)
CMYKcmyk(19%, 0%, 68.1%, 15.3%)
CIE-LABlab(81.10, -33.79, 64.89)
CIE-LCHlch(81.10, 73.16, 117.50°)
OKLaboklab(82.56% -0.0978 0.1463)
OKLCHoklch(82.56% 0.176 123.8)
XYZxyz(43.3096, 58.6551, 14.6689)
Luminance0.5866 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD845 #6E45D8
analogous
#D8B745 #AFD845 #65D845
triadic
#AFD845 #45AFD8 #D845AF
tetradic
#AFD845 #45D8B7 #6E45D8 #D84565
square
#AFD845 #45D8B7 #6E45D8 #D84565
split-complementary
#AFD845 #4565D8 #B745D8
monochromatic
#69861C #90B927 #AFD845 #C5E378 #DBEDAA

Accessibility & contrast

On white

1.65
#AFD845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.73
#AFD845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD845
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD845#FFFFFF#000000##000000
##AFD8451.001.6512.7312.73
#FFFFFF1.651.0021.0021.00
#00000012.7321.001.001.00
##00000012.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB2F
Deuteranopia (green-blind)
#DFC951
Tritanopia (blue-blind)
#B7CEBB
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #afd845;
/* rgb */ color: rgb(175, 216, 69);
/* oklch */ color: oklch(82.6% 0.176 123.8);
Tailwind
colors: {
  custom: {
    50: '#cae481',
    500: '#afd845',
    950: '#000000',
  },
}
SCSS
$custom: #afd845;
$custom-light: #cae481;
$custom-dark: #000000;
JSON
{
  "hex": "#afd845",
  "rgb": {
    "r": 175,
    "g": 216,
    "b": 69
  },
  "hsl": {
    "h": 76.735,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.82555,
    "c": 0.17597,
    "h": 123.8
  },
  "luminance": 0.58655
}

Semantic roles & 50–950 ramp

primary
#AFD845
secondary
#4D348D
accent
#40E86F
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD845

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

Preview Lab → · Contrast checker → · Palette generator →

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