#AFBE42#AFBE42

#AFBE42 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 76.6% C 0.147 H 115.9°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#AFBE42
RGBrgb(175, 190, 66)
HSLhsl(67, 49%, 50%)
HSVhsv(67, 65%, 75%)
CMYKcmyk(7.9%, 0%, 65.3%, 25.5%)
CIE-LABlab(73.76, -21.57, 58.49)
CIE-LCHlch(73.76, 62.34, 110.24°)
OKLaboklab(76.64% -0.0642 0.1324)
OKLCHoklch(76.64% 0.147 115.9)
XYZxyz(37.0769, 46.3347, 12.1435)
Luminance0.4633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE42 #5142BE
analogous
#BE8F42 #AFBE42 #71BE42
triadic
#AFBE42 #42AFBE #BE42AF
tetradic
#AFBE42 #42BE8F #5142BE #BE4271
square
#AFBE42 #42BE8F #5142BE #BE4271
split-complementary
#AFBE42 #4271BE #8F42BE
monochromatic
#5C6322 #859132 #AFBE42 #C2CE70 #D6DD9D

Accessibility & contrast

On white

2.05
#AFBE42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.27
#AFBE42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE42
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE42#FFFFFF#000000##000000
##AFBE421.002.0510.2710.27
#FFFFFF2.051.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB531
Deuteranopia (green-blind)
#CAB64B
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe42;
/* rgb */ color: rgb(175, 190, 66);
/* oklch */ color: oklch(76.6% 0.147 115.9);
Tailwind
colors: {
  custom: {
    50: '#cad17d',
    500: '#afbe42',
    950: '#000000',
  },
}
SCSS
$custom: #afbe42;
$custom-light: #cad17d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe42",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 66
  },
  "hsl": {
    "h": 67.258,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.76639,
    "c": 0.14714,
    "h": 115.9
  },
  "luminance": 0.46334
}

Semantic roles & 50–950 ramp

primary
#AFBE42
secondary
#9992CA
accent
#4FD860
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBE42

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

Preview Lab → · Contrast checker → · Palette generator →

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