#AFBF56#AFBF56

#AFBF56 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.1% C 0.132 H 116.8°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#AFBF56
RGBrgb(175, 191, 86)
HSLhsl(69, 45%, 54%)
HSVhsv(69, 55%, 75%)
CMYKcmyk(8.4%, 0%, 55%, 25.1%)
CIE-LABlab(74.22, -20.57, 50.27)
CIE-LCHlch(74.22, 54.32, 112.25°)
OKLaboklab(77.06% -0.0594 0.1175)
OKLCHoklch(77.06% 0.132 116.8)
XYZxyz(37.9903, 47.0479, 15.8821)
Luminance0.4705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF56 #6656BF
analogous
#BF9B56 #AFBF56 #7BBF56
triadic
#AFBF56 #56AFBF #BF56AF
tetradic
#AFBF56 #56BF9B #6656BF #BF567B
square
#AFBF56 #56BF9B #6656BF #BF567B
split-complementary
#AFBF56 #567BBF #9B56BF
monochromatic
#66702A #8E9D3B #AFBF56 #C4D082 #D9E1AF

Accessibility & contrast

On white

2.02
#AFBF56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.41
#AFBF56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF56
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF56#FFFFFF#000000##000000
##AFBF561.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB64B
Deuteranopia (green-blind)
#C9B75C
Tritanopia (blue-blind)
#B8B6A8
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf56;
/* rgb */ color: rgb(175, 191, 86);
/* oklch */ color: oklch(77.1% 0.132 116.8);
Tailwind
colors: {
  custom: {
    50: '#c9d289',
    500: '#afbf56',
    950: '#000000',
  },
}
SCSS
$custom: #afbf56;
$custom-light: #c9d289;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf56",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 86
  },
  "hsl": {
    "h": 69.143,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.77064,
    "c": 0.13162,
    "h": 116.8
  },
  "luminance": 0.47047
}

Semantic roles & 50–950 ramp

primary
#AFBF56
secondary
#A9A2CF
accent
#53D567
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF56

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

Preview Lab → · Contrast checker → · Palette generator →

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