#AFBC31#AFBC31

#AFBC31 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.1% C 0.156 H 114.9°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#AFBC31
RGBrgb(175, 188, 49)
HSLhsl(66, 59%, 46%)
HSVhsv(66, 74%, 74%)
CMYKcmyk(6.9%, 0%, 73.9%, 26.3%)
CIE-LABlab(73.09, -21.52, 64.15)
CIE-LCHlch(73.09, 67.67, 108.54°)
OKLaboklab(76.07% -0.0656 0.1416)
OKLCHoklch(76.07% 0.156 114.9)
XYZxyz(36.2178, 45.3028, 9.7415)
Luminance0.4530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC31 #3E31BC
analogous
#BC8431 #AFBC31 #69BC31
triadic
#AFBC31 #31AFBC #BC31AF
tetradic
#AFBC31 #31BC84 #3E31BC #BC3169
square
#AFBC31 #31BC84 #3E31BC #BC3169
split-complementary
#AFBC31 #3169BC #8431BC
monochromatic
#555B18 #828B24 #AFBC31 #C8D357 #D8E088

Accessibility & contrast

On white

2.09
#AFBC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.06
#AFBC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC31
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC31#FFFFFF#000000##000000
##AFBC311.002.0910.0610.06
#FFFFFF2.091.0021.0021.00
#00000010.0621.001.001.00
##00000010.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB213
Deuteranopia (green-blind)
#C9B53D
Tritanopia (blue-blind)
#BBB1A2
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbc31;
/* rgb */ color: rgb(175, 188, 49);
/* oklch */ color: oklch(76.1% 0.156 114.9);
Tailwind
colors: {
  custom: {
    50: '#cad074',
    500: '#afbc31',
    950: '#000000',
  },
}
SCSS
$custom: #afbc31;
$custom-light: #cad074;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc31",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 49
  },
  "hsl": {
    "h": 65.612,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.76065,
    "c": 0.15604,
    "h": 114.9
  },
  "luminance": 0.45302
}

Semantic roles & 50–950 ramp

primary
#AFBC31
secondary
#867FCA
accent
#46E255
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBC31

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

Preview Lab → · Contrast checker → · Palette generator →

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