#AFBA54#AFBA54

#AFBA54 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 75.9% C 0.127 H 114.6°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#AFBA54
RGBrgb(175, 186, 84)
HSLhsl(66, 43%, 53%)
HSVhsv(66, 55%, 73%)
CMYKcmyk(5.9%, 0%, 54.8%, 27.1%)
CIE-LABlab(72.81, -18.24, 49.58)
CIE-LCHlch(72.81, 52.83, 110.20°)
OKLaboklab(75.93% -0.053 0.1158)
OKLCHoklch(75.93% 0.127 114.6)
XYZxyz(36.8390, 44.8724, 15.1064)
Luminance0.4487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA54 #5F54BA
analogous
#BA9254 #AFBA54 #7CBA54
triadic
#AFBA54 #54AFBA #BA54AF
tetradic
#AFBA54 #54BA92 #5F54BA #BA547C
square
#AFBA54 #54BA92 #5F54BA #BA547C
split-complementary
#AFBA54 #547CBA #9254BA
monochromatic
#62692A #8B953C #AFBA54 #C3CC80 #D8DDAB

Accessibility & contrast

On white

2.11
#AFBA54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#AFBA54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA54
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA54#FFFFFF#000000##000000
##AFBA541.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B24A
Deuteranopia (green-blind)
#C5B45A
Tritanopia (blue-blind)
#B9B0A3
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afba54;
/* rgb */ color: rgb(175, 186, 84);
/* oklch */ color: oklch(75.9% 0.127 114.6);
Tailwind
colors: {
  custom: {
    50: '#c9ce87',
    500: '#afba54',
    950: '#000000',
  },
}
SCSS
$custom: #afba54;
$custom-light: #c9ce87;
$custom-dark: #000000;
JSON
{
  "hex": "#afba54",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 84
  },
  "hsl": {
    "h": 66.471,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.75927,
    "c": 0.12732,
    "h": 114.6
  },
  "luminance": 0.44872
}

Semantic roles & 50–950 ramp

primary
#AFBA54
secondary
#A49FCB
accent
#56D263
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFBA54

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

Preview Lab → · Contrast checker → · Palette generator →

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