#AFC04B#AFC04B

#AFC04B is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.2% C 0.142 H 116.8°. Best body text is #000000 at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#AFC04B
RGBrgb(175, 192, 75)
HSLhsl(69, 48%, 52%)
HSVhsv(69, 61%, 75%)
CMYKcmyk(8.9%, 0%, 60.9%, 24.7%)
CIE-LABlab(74.40, -21.94, 55.40)
CIE-LCHlch(74.40, 59.58, 111.61°)
OKLaboklab(77.17% -0.0643 0.1271)
OKLCHoklch(77.17% 0.142 116.8)
XYZxyz(37.7996, 47.3217, 13.7980)
Luminance0.4732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC04B #5C4BC0
analogous
#C0974B #AFC04B #75C04B
triadic
#AFC04B #4BAFC0 #C04BAF
tetradic
#AFC04B #4BC097 #5C4BC0 #C04B75
square
#AFC04B #4BC097 #5C4BC0 #C04B75
split-complementary
#AFC04B #4B75C0 #974BC0
monochromatic
#616B25 #8A9835 #AFC04B #C3D078 #D7E0A6

Accessibility & contrast

On white

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

On black

10.46
#AFC04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC04B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC04B#FFFFFF#000000##000000
##AFC04B1.002.0110.4610.46
#FFFFFF2.011.0021.0021.00
#00000010.4621.001.001.00
##00000010.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB63D
Deuteranopia (green-blind)
#CBB853
Tritanopia (blue-blind)
#B9B6A7
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc04b;
/* rgb */ color: rgb(175, 192, 75);
/* oklch */ color: oklch(77.2% 0.142 116.8);
Tailwind
colors: {
  custom: {
    50: '#c9d382',
    500: '#afc04b',
    950: '#000000',
  },
}
SCSS
$custom: #afc04b;
$custom-light: #c9d382;
$custom-dark: #000000;
JSON
{
  "hex": "#afc04b",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 68.718,
    "s": 48.148,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7717,
    "c": 0.14246,
    "h": 116.8
  },
  "luminance": 0.47321
}

Semantic roles & 50–950 ramp

primary
#AFC04B
secondary
#A19ACD
accent
#50D864
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC04B

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

Preview Lab → · Contrast checker → · Palette generator →

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