#AFC12E#AFC12E

#AFC12E is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.2% C 0.163 H 116.6°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#AFC12E
RGBrgb(175, 193, 46)
HSLhsl(67, 62%, 47%)
HSVhsv(67, 76%, 76%)
CMYKcmyk(9.3%, 0%, 76.2%, 24.3%)
CIE-LABlab(74.48, -24.11, 66.42)
CIE-LCHlch(74.48, 70.66, 109.95°)
OKLaboklab(77.17% -0.0731 0.1458)
OKLCHoklch(77.17% 0.163 116.6)
XYZxyz(37.2433, 47.4517, 9.7814)
Luminance0.4745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC12E #402EC1
analogous
#C18A2E #AFC12E #66C12E
triadic
#AFC12E #2EAFC1 #C12EAF
tetradic
#AFC12E #2EC18A #402EC1 #C12E66
square
#AFC12E #2EC18A #402EC1 #C12E66
split-complementary
#AFC12E #2E66C1 #8A2EC1
monochromatic
#555E16 #829022 #AFC12E #C7D756 #D7E287

Accessibility & contrast

On white

2.00
#AFC12E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.49
#AFC12E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC12E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC12E#FFFFFF#000000##000000
##AFC12E1.002.0010.4910.49
#FFFFFF2.001.0021.0021.00
#00000010.4921.001.001.00
##00000010.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB705
Deuteranopia (green-blind)
#CDB83B
Tritanopia (blue-blind)
#BAB6A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc12e;
/* rgb */ color: rgb(175, 193, 46);
/* oklch */ color: oklch(77.2% 0.163 116.6);
Tailwind
colors: {
  custom: {
    50: '#cbd373',
    500: '#afc12e',
    950: '#000000',
  },
}
SCSS
$custom: #afc12e;
$custom-light: #cbd373;
$custom-dark: #000000;
JSON
{
  "hex": "#afc12e",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 46
  },
  "hsl": {
    "h": 67.347,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.77174,
    "c": 0.16312,
    "h": 116.6
  },
  "luminance": 0.47451
}

Semantic roles & 50–950 ramp

primary
#AFC12E
secondary
#887FCC
accent
#43E557
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC12E

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

Preview Lab → · Contrast checker → · Palette generator →

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