#AFBD42#AFBD42

#AFBD42 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 76.4% C 0.146 H 115.5°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#AFBD42
RGBrgb(175, 189, 66)
HSLhsl(67, 48%, 50%)
HSVhsv(67, 65%, 74%)
CMYKcmyk(7.4%, 0%, 65.1%, 25.9%)
CIE-LABlab(73.48, -21.08, 58.20)
CIE-LCHlch(73.48, 61.90, 109.91°)
OKLaboklab(76.42% -0.0628 0.1318)
OKLCHoklch(76.42% 0.146 115.5)
XYZxyz(36.8610, 45.9031, 12.0716)
Luminance0.4590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD42 #5042BD
analogous
#BD8D42 #AFBD42 #72BD42
triadic
#AFBD42 #42AFBD #BD42AF
tetradic
#AFBD42 #42BD8D #5042BD #BD4272
square
#AFBD42 #42BD8D #5042BD #BD4272
split-complementary
#AFBD42 #4272BD #8D42BD
monochromatic
#5B6222 #859032 #AFBD42 #C2CD6F #D5DD9D

Accessibility & contrast

On white

2.06
#AFBD42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.18
#AFBD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD42
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD42#FFFFFF#000000##000000
##AFBD421.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB431
Deuteranopia (green-blind)
#C9B54B
Tritanopia (blue-blind)
#BAB3A4
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd42;
/* rgb */ color: rgb(175, 189, 66);
/* oklch */ color: oklch(76.4% 0.146 115.5);
Tailwind
colors: {
  custom: {
    50: '#cad07d',
    500: '#afbd42',
    950: '#000000',
  },
}
SCSS
$custom: #afbd42;
$custom-light: #cad07d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd42",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 66
  },
  "hsl": {
    "h": 66.829,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.76415,
    "c": 0.14599,
    "h": 115.5
  },
  "luminance": 0.45902
}

Semantic roles & 50–950 ramp

primary
#AFBD42
secondary
#9892C9
accent
#50D85F
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBD42

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

Preview Lab → · Contrast checker → · Palette generator →

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