#AFC120#AFC120

#AFC120 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.1% C 0.169 H 116.5°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#AFC120
RGBrgb(175, 193, 32)
HSLhsl(67, 72%, 44%)
HSVhsv(67, 83%, 76%)
CMYKcmyk(9.3%, 0%, 83.4%, 24.3%)
CIE-LABlab(74.42, -24.62, 70.22)
CIE-LCHlch(74.42, 74.41, 109.32°)
OKLaboklab(77.11% -0.0754 0.1516)
OKLCHoklch(77.11% 0.169 116.5)
XYZxyz(37.0109, 47.3587, 8.5577)
Luminance0.4736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC120 #3220C1
analogous
#C18320 #AFC120 #5FC120
triadic
#AFC120 #20AFC1 #C120AF
tetradic
#AFC120 #20C183 #3220C1 #C1205F
square
#AFC120 #20C183 #3220C1 #C1205F
split-complementary
#AFC120 #205FC1 #8320C1
monochromatic
#50580F #7F8D17 #AFC120 #CDDF3F #DBE874

Accessibility & contrast

On white

2.01
#AFC120 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#AFC120 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC120
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC120#FFFFFF#000000##000000
##AFC1201.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB600
Deuteranopia (green-blind)
#CDB832
Tritanopia (blue-blind)
#BBB5A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc120;
/* rgb */ color: rgb(175, 193, 32);
/* oklch */ color: oklch(77.1% 0.169 116.5);
Tailwind
colors: {
  custom: {
    50: '#cbd36d',
    500: '#afc120',
    950: '#000000',
  },
}
SCSS
$custom: #afc120;
$custom-light: #cbd36d;
$custom-dark: #000000;
JSON
{
  "hex": "#afc120",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 32
  },
  "hsl": {
    "h": 66.708,
    "s": 71.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.77107,
    "c": 0.16933,
    "h": 116.5
  },
  "luminance": 0.47358
}

Semantic roles & 50–950 ramp

primary
#AFC120
secondary
#796ECF
accent
#3AEE4E
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #AFC120

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

Preview Lab → · Contrast checker → · Palette generator →

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