#AFC031#AFC031

#AFC031 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.0% C 0.160 H 116.3°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#AFC031
RGBrgb(175, 192, 49)
HSLhsl(67, 59%, 47%)
HSVhsv(67, 74%, 75%)
CMYKcmyk(8.9%, 0%, 74.5%, 24.7%)
CIE-LABlab(74.21, -23.49, 65.21)
CIE-LCHlch(74.21, 69.31, 109.81°)
OKLaboklab(76.96% -0.0711 0.1438)
OKLCHoklch(76.96% 0.16 116.3)
XYZxyz(37.0842, 47.0355, 10.0303)
Luminance0.4703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC031 #4231C0
analogous
#C08A31 #AFC031 #67C031
triadic
#AFC031 #31AFC0 #C031AF
tetradic
#AFC031 #31C08A #4231C0 #C03167
square
#AFC031 #31C08A #4231C0 #C03167
split-complementary
#AFC031 #3167C0 #8A31C0
monochromatic
#565E18 #838F25 #AFC031 #C6D559 #D7E18A

Accessibility & contrast

On white

2.02
#AFC031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.41
#AFC031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC031
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC031#FFFFFF#000000##000000
##AFC0311.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB610
Deuteranopia (green-blind)
#CCB73D
Tritanopia (blue-blind)
#BAB5A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afc031;
/* rgb */ color: rgb(175, 192, 49);
/* oklch */ color: oklch(77.0% 0.160 116.3);
Tailwind
colors: {
  custom: {
    50: '#cad274',
    500: '#afc031',
    950: '#000000',
  },
}
SCSS
$custom: #afc031;
$custom-light: #cad274;
$custom-dark: #000000;
JSON
{
  "hex": "#afc031",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 49
  },
  "hsl": {
    "h": 67.133,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.76965,
    "c": 0.16041,
    "h": 116.3
  },
  "luminance": 0.47035
}

Semantic roles & 50–950 ramp

primary
#AFC031
secondary
#8A82CB
accent
#45E358
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC031

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

Preview Lab → · Contrast checker → · Palette generator →

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