#AFBB51#AFBB51

#AFBB51 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.1% C 0.131 H 115.0°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#AFBB51
RGBrgb(175, 187, 81)
HSLhsl(67, 44%, 53%)
HSVhsv(67, 57%, 73%)
CMYKcmyk(6.4%, 0%, 56.7%, 26.7%)
CIE-LABlab(73.06, -18.99, 51.24)
CIE-LCHlch(73.06, 54.65, 110.33°)
OKLaboklab(76.11% -0.0554 0.119)
OKLCHoklch(76.11% 0.131 115)
XYZxyz(36.9354, 45.2492, 14.5712)
Luminance0.4525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB51 #5D51BB
analogous
#BB9251 #AFBB51 #7ABB51
triadic
#AFBB51 #51AFBB #BB51AF
tetradic
#AFBB51 #51BB92 #5D51BB #BB517A
square
#AFBB51 #51BB92 #5D51BB #BB517A
split-complementary
#AFBB51 #517ABB #9251BB
monochromatic
#616929 #8A953A #AFBB51 #C3CC7D #D7DDA9

Accessibility & contrast

On white

2.09
#AFBB51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#AFBB51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB51
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB51#FFFFFF#000000##000000
##AFBB511.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B246
Deuteranopia (green-blind)
#C6B457
Tritanopia (blue-blind)
#B9B1A4
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afbb51;
/* rgb */ color: rgb(175, 187, 81);
/* oklch */ color: oklch(76.1% 0.131 115.0);
Tailwind
colors: {
  custom: {
    50: '#c9cf85',
    500: '#afbb51',
    950: '#000000',
  },
}
SCSS
$custom: #afbb51;
$custom-light: #c9cf85;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb51",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 81
  },
  "hsl": {
    "h": 66.792,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76115,
    "c": 0.13128,
    "h": 115
  },
  "luminance": 0.45249
}

Semantic roles & 50–950 ramp

primary
#AFBB51
secondary
#A29DCB
accent
#54D463
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBB51

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

Preview Lab → · Contrast checker → · Palette generator →

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