#AFC12F#AFC12F

#AFC12F 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#AFC12F
RGBrgb(175, 193, 47)
HSLhsl(67, 61%, 47%)
HSVhsv(67, 76%, 76%)
CMYKcmyk(9.3%, 0%, 75.6%, 24.3%)
CIE-LABlab(74.48, -24.07, 66.11)
CIE-LCHlch(74.48, 70.36, 110.00°)
OKLaboklab(77.18% -0.0729 0.1454)
OKLCHoklch(77.18% 0.163 116.6)
XYZxyz(37.2632, 47.4596, 9.8864)
Luminance0.4746 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC12F #412FC1
analogous
#C18A2F #AFC12F #66C12F
triadic
#AFC12F #2FAFC1 #C12FAF
tetradic
#AFC12F #2FC18A #412FC1 #C12F66
square
#AFC12F #2FC18A #412FC1 #C12F66
split-complementary
#AFC12F #2F66C1 #8A2FC1
monochromatic
#565F17 #829023 #AFC12F #C6D657 #D7E288

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC12F#FFFFFF#000000##000000
##AFC12F1.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)
#CFB709
Deuteranopia (green-blind)
#CDB83C
Tritanopia (blue-blind)
#BAB6A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc12f;
/* rgb */ color: rgb(175, 193, 47);
/* oklch */ color: oklch(77.2% 0.163 116.6);
Tailwind
colors: {
  custom: {
    50: '#cbd373',
    500: '#afc12f',
    950: '#000000',
  },
}
SCSS
$custom: #afc12f;
$custom-light: #cbd373;
$custom-dark: #000000;
JSON
{
  "hex": "#afc12f",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 47
  },
  "hsl": {
    "h": 67.397,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.77179,
    "c": 0.16259,
    "h": 116.6
  },
  "luminance": 0.47459
}

Semantic roles & 50–950 ramp

primary
#AFC12F
secondary
#8980CC
accent
#44E458
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC12F

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

Preview Lab → · Contrast checker → · Palette generator →

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