#AFBF51#AFBF51

#AFBF51 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.0% C 0.136 H 116.6°. Best body text is #000000 at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#AFBF51
RGBrgb(175, 191, 81)
HSLhsl(69, 46%, 53%)
HSVhsv(69, 58%, 75%)
CMYKcmyk(8.4%, 0%, 57.6%, 25.1%)
CIE-LABlab(74.17, -20.98, 52.50)
CIE-LCHlch(74.17, 56.54, 111.79°)
OKLaboklab(77.01% -0.061 0.1217)
OKLCHoklch(77.01% 0.136 116.6)
XYZxyz(37.7959, 46.9701, 14.8580)
Luminance0.4697 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF51 #6151BF
analogous
#BF9851 #AFBF51 #78BF51
triadic
#AFBF51 #51AFBF #BF51AF
tetradic
#AFBF51 #51BF98 #6151BF #BF5178
square
#AFBF51 #51BF98 #6151BF #BF5178
split-complementary
#AFBF51 #5178BF #9851BF
monochromatic
#636D28 #8C9A39 #AFBF51 #C4CF7E #D8E0AA

Accessibility & contrast

On white

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

On black

10.39
#AFBF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF51
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF51#FFFFFF#000000##000000
##AFBF511.002.0210.3910.39
#FFFFFF2.021.0021.0021.00
#00000010.3921.001.001.00
##00000010.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB645
Deuteranopia (green-blind)
#C9B758
Tritanopia (blue-blind)
#B9B5A7
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf51;
/* rgb */ color: rgb(175, 191, 81);
/* oklch */ color: oklch(77.0% 0.136 116.6);
Tailwind
colors: {
  custom: {
    50: '#c9d286',
    500: '#afbf51',
    950: '#000000',
  },
}
SCSS
$custom: #afbf51;
$custom-light: #c9d286;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf51",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 81
  },
  "hsl": {
    "h": 68.727,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.77008,
    "c": 0.13614,
    "h": 116.6
  },
  "luminance": 0.4697
}

Semantic roles & 50–950 ramp

primary
#AFBF51
secondary
#A59ECE
accent
#52D665
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFBF51

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

Preview Lab → · Contrast checker → · Palette generator →

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