#AFC12A#AFC12A

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

Color values

HEX#AFC12A
RGBrgb(175, 193, 42)
HSLhsl(67, 64%, 46%)
HSVhsv(67, 78%, 76%)
CMYKcmyk(9.3%, 0%, 78.2%, 24.3%)
CIE-LABlab(74.46, -24.27, 67.62)
CIE-LCHlch(74.46, 71.84, 109.75°)
OKLaboklab(77.15% -0.0738 0.1477)
OKLCHoklch(77.15% 0.165 116.6)
XYZxyz(37.1681, 47.4216, 9.3853)
Luminance0.4742 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC12A #3C2AC1
analogous
#C1872A #AFC12A #63C12A
triadic
#AFC12A #2AAFC1 #C12AAF
tetradic
#AFC12A #2AC187 #3C2AC1 #C12A63
square
#AFC12A #2AC187 #3C2AC1 #C12A63
split-complementary
#AFC12A #2A63C1 #872AC1
monochromatic
#545C14 #818F1F #AFC12A #C8D94F #D8E482

Accessibility & contrast

On white

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

On black

10.48
#AFC12A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC12A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC12A#FFFFFF#000000##000000
##AFC12A1.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB700
Deuteranopia (green-blind)
#CDB839
Tritanopia (blue-blind)
#BAB6A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc12a;
/* rgb */ color: rgb(175, 193, 42);
/* oklch */ color: oklch(77.2% 0.165 116.6);
Tailwind
colors: {
  custom: {
    50: '#cbd371',
    500: '#afc12a',
    950: '#000000',
  },
}
SCSS
$custom: #afc12a;
$custom-light: #cbd371;
$custom-dark: #000000;
JSON
{
  "hex": "#afc12a",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 42
  },
  "hsl": {
    "h": 67.152,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.77152,
    "c": 0.16511,
    "h": 116.6
  },
  "luminance": 0.47421
}

Semantic roles & 50–950 ramp

primary
#AFC12A
secondary
#847ACD
accent
#41E754
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFC12A

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

Preview Lab → · Contrast checker → · Palette generator →

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