#AFC047#AFC047

#AFC047 is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.1% C 0.146 H 116.7°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#AFC047
RGBrgb(175, 192, 71)
HSLhsl(68, 49%, 52%)
HSVhsv(68, 63%, 75%)
CMYKcmyk(8.9%, 0%, 63%, 24.7%)
CIE-LABlab(74.36, -22.23, 57.06)
CIE-LCHlch(74.36, 61.24, 111.28°)
OKLaboklab(77.13% -0.0655 0.1301)
OKLCHoklch(77.13% 0.146 116.7)
XYZxyz(37.6669, 47.2686, 13.0995)
Luminance0.4727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC047 #5847C0
analogous
#C09547 #AFC047 #73C047
triadic
#AFC047 #47AFC0 #C047AF
tetradic
#AFC047 #47C095 #5847C0 #C04773
square
#AFC047 #47C095 #5847C0 #C04773
split-complementary
#AFC047 #4773C0 #9547C0
monochromatic
#5F6924 #889633 #AFC047 #C3D075 #D7DFA2

Accessibility & contrast

On white

2.01
#AFC047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#AFC047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC047
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC047#FFFFFF#000000##000000
##AFC0471.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB638
Deuteranopia (green-blind)
#CBB84F
Tritanopia (blue-blind)
#B9B6A7
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc047;
/* rgb */ color: rgb(175, 192, 71);
/* oklch */ color: oklch(77.1% 0.146 116.7);
Tailwind
colors: {
  custom: {
    50: '#cad380',
    500: '#afc047',
    950: '#000000',
  },
}
SCSS
$custom: #afc047;
$custom-light: #cad380;
$custom-dark: #000000;
JSON
{
  "hex": "#afc047",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 68.43,
    "s": 48.988,
    "l": 51.569
  },
  "oklch": {
    "l": 0.77132,
    "c": 0.14567,
    "h": 116.7
  },
  "luminance": 0.47268
}

Semantic roles & 50–950 ramp

primary
#AFC047
secondary
#9E97CC
accent
#4FD963
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC047

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

Preview Lab → · Contrast checker → · Palette generator →

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