#AFBF47#AFBF47

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

Color values

HEX#AFBF47
RGBrgb(175, 191, 71)
HSLhsl(68, 48%, 51%)
HSVhsv(68, 63%, 75%)
CMYKcmyk(8.4%, 0%, 62.8%, 25.1%)
CIE-LABlab(74.08, -21.73, 56.76)
CIE-LCHlch(74.08, 60.78, 110.95°)
OKLaboklab(76.91% -0.0641 0.1295)
OKLCHoklch(76.91% 0.144 116.4)
XYZxyz(37.4481, 46.8310, 13.0265)
Luminance0.4683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF47 #5747BF
analogous
#BF9347 #AFBF47 #73BF47
triadic
#AFBF47 #47AFBF #BF47AF
tetradic
#AFBF47 #47BF93 #5747BF #BF4773
square
#AFBF47 #47BF93 #5747BF #BF4773
split-complementary
#AFBF47 #4773BF #9347BF
monochromatic
#5F6824 #889534 #AFBF47 #C3CF74 #D6DFA2

Accessibility & contrast

On white

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

On black

10.37
#AFBF47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF47
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF47#FFFFFF#000000##000000
##AFBF471.002.0310.3710.37
#FFFFFF2.031.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB638
Deuteranopia (green-blind)
#CAB74F
Tritanopia (blue-blind)
#B9B5A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf47;
/* rgb */ color: rgb(175, 191, 71);
/* oklch */ color: oklch(76.9% 0.144 116.4);
Tailwind
colors: {
  custom: {
    50: '#cad280',
    500: '#afbf47',
    950: '#000000',
  },
}
SCSS
$custom: #afbf47;
$custom-light: #cad280;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf47",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 71
  },
  "hsl": {
    "h": 68,
    "s": 48.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.76908,
    "c": 0.14449,
    "h": 116.4
  },
  "luminance": 0.4683
}

Semantic roles & 50–950 ramp

primary
#AFBF47
secondary
#9E96CB
accent
#50D862
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBF47

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

Preview Lab → · Contrast checker → · Palette generator →

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