#AFBF41#AFBF41

#AFBF41 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 76.9% C 0.149 H 116.2°. Best body text is #000000 at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#AFBF41
RGBrgb(175, 191, 65)
HSLhsl(68, 50%, 50%)
HSVhsv(68, 66%, 75%)
CMYKcmyk(8.4%, 0%, 66%, 25.1%)
CIE-LABlab(74.03, -22.13, 59.18)
CIE-LCHlch(74.03, 63.18, 110.50°)
OKLaboklab(76.85% -0.0659 0.1337)
OKLCHoklch(76.85% 0.149 116.2)
XYZxyz(37.2650, 46.7577, 12.0620)
Luminance0.4676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF41 #5141BF
analogous
#BF9041 #AFBF41 #70BF41
triadic
#AFBF41 #41AFBF #BF41AF
tetradic
#AFBF41 #41BF90 #5141BF #BF4170
square
#AFBF41 #41BF90 #5141BF #BF4170
split-complementary
#AFBF41 #4170BF #9041BF
monochromatic
#5C6422 #859231 #AFBF41 #C2CE6F #D6DE9D

Accessibility & contrast

On white

2.03
#AFBF41 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.35
#AFBF41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF41
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF41#FFFFFF#000000##000000
##AFBF411.002.0310.3510.35
#FFFFFF2.031.0021.0021.00
#00000010.3521.001.001.00
##00000010.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB52F
Deuteranopia (green-blind)
#CAB74A
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf41;
/* rgb */ color: rgb(175, 191, 65);
/* oklch */ color: oklch(76.9% 0.149 116.2);
Tailwind
colors: {
  custom: {
    50: '#cad27c',
    500: '#afbf41',
    950: '#000000',
  },
}
SCSS
$custom: #afbf41;
$custom-light: #cad27c;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf41",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 65
  },
  "hsl": {
    "h": 67.619,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.76855,
    "c": 0.14903,
    "h": 116.2
  },
  "luminance": 0.46757
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFBF41

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

Preview Lab → · Contrast checker → · Palette generator →

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