#AFBC51#AFBC51

#AFBC51 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.3% C 0.132 H 115.4°. Best body text is #000000 at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#AFBC51
RGBrgb(175, 188, 81)
HSLhsl(67, 44%, 53%)
HSVhsv(67, 57%, 74%)
CMYKcmyk(6.9%, 0%, 56.9%, 26.3%)
CIE-LABlab(73.33, -19.49, 51.56)
CIE-LCHlch(73.33, 55.12, 110.71°)
OKLaboklab(76.34% -0.0568 0.1197)
OKLCHoklch(76.34% 0.132 115.4)
XYZxyz(37.1483, 45.6750, 14.6422)
Luminance0.4567 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBC51 #5E51BC
analogous
#BC9451 #AFBC51 #79BC51
triadic
#AFBC51 #51AFBC #BC51AF
tetradic
#AFBC51 #51BC94 #5E51BC #BC5179
square
#AFBC51 #51BC94 #5E51BC #BC5179
split-complementary
#AFBC51 #5179BC #9451BC
monochromatic
#626A29 #8B963A #AFBC51 #C3CD7D #D8DEA9

Accessibility & contrast

On white

2.07
#AFBC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.13
#AFBC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBC51
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBC51#FFFFFF#000000##000000
##AFBC511.002.0710.1310.13
#FFFFFF2.071.0021.0021.00
#00000010.1321.001.001.00
##00000010.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B346
Deuteranopia (green-blind)
#C7B557
Tritanopia (blue-blind)
#B9B2A5
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbc51;
/* rgb */ color: rgb(175, 188, 81);
/* oklch */ color: oklch(76.3% 0.132 115.4);
Tailwind
colors: {
  custom: {
    50: '#c9d086',
    500: '#afbc51',
    950: '#000000',
  },
}
SCSS
$custom: #afbc51;
$custom-light: #c9d086;
$custom-dark: #000000;
JSON
{
  "hex": "#afbc51",
  "rgb": {
    "r": 175,
    "g": 188,
    "b": 81
  },
  "hsl": {
    "h": 67.29,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.76338,
    "c": 0.13249,
    "h": 115.4
  },
  "luminance": 0.45674
}

Semantic roles & 50–950 ramp

primary
#AFBC51
secondary
#A39DCC
accent
#54D463
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBC51

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

Preview Lab → · Contrast checker → · Palette generator →

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