#AFC152#AFC152

#AFC152 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.5% C 0.138 H 117.4°. Best body text is #000000 at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#AFC152
RGBrgb(175, 193, 82)
HSLhsl(70, 47%, 54%)
HSVhsv(70, 58%, 76%)
CMYKcmyk(9.3%, 0%, 57.5%, 24.3%)
CIE-LABlab(74.74, -21.89, 52.69)
CIE-LCHlch(74.74, 57.06, 112.56°)
OKLaboklab(77.47% -0.0635 0.1222)
OKLCHoklch(77.47% 0.138 117.4)
XYZxyz(38.2728, 47.8634, 15.2034)
Luminance0.4786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC152 #6452C1
analogous
#C19C52 #AFC152 #78C152
triadic
#AFC152 #52AFC1 #C152AF
tetradic
#AFC152 #52C19C #6452C1 #C15278
square
#AFC152 #52C19C #6452C1 #C15278
split-complementary
#AFC152 #5278C1 #9C52C1
monochromatic
#657028 #8D9D38 #AFC152 #C4D17F #D9E1AC

Accessibility & contrast

On white

1.99
#AFC152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.57
#AFC152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC152
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC152#FFFFFF#000000##000000
##AFC1521.001.9910.5710.57
#FFFFFF1.991.0021.0021.00
#00000010.5721.001.001.00
##00000010.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB846
Deuteranopia (green-blind)
#CBB959
Tritanopia (blue-blind)
#B8B7A9
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc152;
/* rgb */ color: rgb(175, 193, 82);
/* oklch */ color: oklch(77.5% 0.138 117.4);
Tailwind
colors: {
  custom: {
    50: '#c9d386',
    500: '#afc152',
    950: '#000000',
  },
}
SCSS
$custom: #afc152;
$custom-light: #c9d386;
$custom-dark: #000000;
JSON
{
  "hex": "#afc152",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 69.73,
    "s": 47.234,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77467,
    "c": 0.13771,
    "h": 117.4
  },
  "luminance": 0.47863
}

Semantic roles & 50–950 ramp

primary
#AFC152
secondary
#A7A0CF
accent
#51D767
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC152

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

Preview Lab → · Contrast checker → · Palette generator →

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