#AFBE40#AFBE40

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

Color values

HEX#AFBE40
RGBrgb(175, 190, 64)
HSLhsl(67, 50%, 50%)
HSVhsv(67, 66%, 75%)
CMYKcmyk(7.9%, 0%, 66.3%, 25.5%)
CIE-LABlab(73.75, -21.70, 59.28)
CIE-LCHlch(73.75, 63.13, 110.10°)
OKLaboklab(76.62% -0.0647 0.1338)
OKLCHoklch(76.62% 0.149 115.8)
XYZxyz(37.0189, 46.3116, 11.8384)
Luminance0.4631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBE40 #4F40BE
analogous
#BE8E40 #AFBE40 #70BE40
triadic
#AFBE40 #40AFBE #BE40AF
tetradic
#AFBE40 #40BE8E #4F40BE #BE4070
square
#AFBE40 #40BE8E #4F40BE #BE4070
split-complementary
#AFBE40 #4070BE #8E40BE
monochromatic
#5B6221 #859031 #AFBE40 #C2CE6D #D5DD9B

Accessibility & contrast

On white

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

On black

10.26
#AFBE40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBE40
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBE40#FFFFFF#000000##000000
##AFBE401.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB42E
Deuteranopia (green-blind)
#CAB649
Tritanopia (blue-blind)
#BAB3A4
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #afbe40;
/* rgb */ color: rgb(175, 190, 64);
/* oklch */ color: oklch(76.6% 0.149 115.8);
Tailwind
colors: {
  custom: {
    50: '#cad17c',
    500: '#afbe40',
    950: '#000000',
  },
}
SCSS
$custom: #afbe40;
$custom-light: #cad17c;
$custom-dark: #000000;
JSON
{
  "hex": "#afbe40",
  "rgb": {
    "r": 175,
    "g": 190,
    "b": 64
  },
  "hsl": {
    "h": 67.143,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.76622,
    "c": 0.1486,
    "h": 115.8
  },
  "luminance": 0.46311
}

Semantic roles & 50–950 ramp

primary
#AFBE40
secondary
#9790C9
accent
#4FD95F
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBE40

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

Preview Lab → · Contrast checker → · Palette generator →

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