#AFC12C#AFC12C

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

Color values

HEX#AFC12C
RGBrgb(175, 193, 44)
HSLhsl(67, 63%, 46%)
HSVhsv(67, 77%, 76%)
CMYKcmyk(9.3%, 0%, 77.2%, 24.3%)
CIE-LABlab(74.47, -24.19, 67.03)
CIE-LCHlch(74.47, 71.26, 109.85°)
OKLaboklab(77.16% -0.0735 0.1468)
OKLCHoklch(77.16% 0.164 116.6)
XYZxyz(37.2048, 47.4363, 9.5786)
Luminance0.4744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC12C #3E2CC1
analogous
#C1892C #AFC12C #65C12C
triadic
#AFC12C #2CAFC1 #C12CAF
tetradic
#AFC12C #2CC189 #3E2CC1 #C12C65
square
#AFC12C #2CC189 #3E2CC1 #C12C65
split-complementary
#AFC12C #2C65C1 #892CC1
monochromatic
#555D15 #828F21 #AFC12C #C8D853 #D8E384

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC12C#FFFFFF#000000##000000
##AFC12C1.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)
#CFB700
Deuteranopia (green-blind)
#CDB83A
Tritanopia (blue-blind)
#BAB6A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc12c;
/* rgb */ color: rgb(175, 193, 44);
/* oklch */ color: oklch(77.2% 0.164 116.6);
Tailwind
colors: {
  custom: {
    50: '#cbd372',
    500: '#afc12c',
    950: '#000000',
  },
}
SCSS
$custom: #afc12c;
$custom-light: #cbd372;
$custom-dark: #000000;
JSON
{
  "hex": "#afc12c",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 44
  },
  "hsl": {
    "h": 67.248,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.77163,
    "c": 0.16414,
    "h": 116.6
  },
  "luminance": 0.47436
}

Semantic roles & 50–950 ramp

primary
#AFC12C
secondary
#867DCC
accent
#42E656
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC12C

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

Preview Lab → · Contrast checker → · Palette generator →

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