#AFC12B#AFC12B

#AFC12B 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.49:1 contrast (WCAG AA passes).

Color values

HEX#AFC12B
RGBrgb(175, 193, 43)
HSLhsl(67, 64%, 46%)
HSVhsv(67, 78%, 76%)
CMYKcmyk(9.3%, 0%, 77.7%, 24.3%)
CIE-LABlab(74.46, -24.23, 67.33)
CIE-LCHlch(74.46, 71.55, 109.80°)
OKLaboklab(77.16% -0.0736 0.1472)
OKLCHoklch(77.16% 0.165 116.6)
XYZxyz(37.1862, 47.4288, 9.4808)
Luminance0.4743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC12B #3D2BC1
analogous
#C1882B #AFC12B #64C12B
triadic
#AFC12B #2BAFC1 #C12BAF
tetradic
#AFC12B #2BC188 #3D2BC1 #C12B64
square
#AFC12B #2BC188 #3D2BC1 #C12B64
split-complementary
#AFC12B #2B64C1 #882BC1
monochromatic
#545D15 #828F20 #AFC12B #C8D851 #D8E383

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFC12B#FFFFFF#000000##000000
##AFC12B1.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)
#CDB839
Tritanopia (blue-blind)
#BAB6A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc12b;
/* rgb */ color: rgb(175, 193, 43);
/* oklch */ color: oklch(77.2% 0.165 116.6);
Tailwind
colors: {
  custom: {
    50: '#cbd371',
    500: '#afc12b',
    950: '#000000',
  },
}
SCSS
$custom: #afc12b;
$custom-light: #cbd371;
$custom-dark: #000000;
JSON
{
  "hex": "#afc12b",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 43
  },
  "hsl": {
    "h": 67.2,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.77157,
    "c": 0.16463,
    "h": 116.6
  },
  "luminance": 0.47428
}

Semantic roles & 50–950 ramp

primary
#AFC12B
secondary
#857BCC
accent
#41E755
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC12B

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

Preview Lab → · Contrast checker → · Palette generator →

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