#AFBA48#AFBA48

#AFBA48 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 75.8% C 0.138 H 114.4°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#AFBA48
RGBrgb(175, 186, 72)
HSLhsl(66, 45%, 51%)
HSVhsv(66, 61%, 73%)
CMYKcmyk(5.9%, 0%, 61.3%, 27.1%)
CIE-LABlab(72.69, -19.18, 54.85)
CIE-LCHlch(72.69, 58.10, 109.27°)
OKLaboklab(75.8% -0.0569 0.1256)
OKLCHoklch(75.8% 0.138 114.4)
XYZxyz(36.4086, 44.7003, 12.8397)
Luminance0.4470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA48 #5348BA
analogous
#BA8C48 #AFBA48 #76BA48
triadic
#AFBA48 #48AFBA #BA48AF
tetradic
#AFBA48 #48BA8C #5348BA #BA4876
square
#AFBA48 #48BA8C #5348BA #BA4876
split-complementary
#AFBA48 #4876BA #8C48BA
monochromatic
#5D6225 #868F36 #AFBA48 #C2CB74 #D6DCA1

Accessibility & contrast

On white

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

On black

9.94
#AFBA48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA48
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA48#FFFFFF#000000##000000
##AFBA481.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B13A
Deuteranopia (green-blind)
#C6B34F
Tritanopia (blue-blind)
#BAB0A2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba48;
/* rgb */ color: rgb(175, 186, 72);
/* oklch */ color: oklch(75.8% 0.138 114.4);
Tailwind
colors: {
  custom: {
    50: '#c9ce80',
    500: '#afba48',
    950: '#000000',
  },
}
SCSS
$custom: #afba48;
$custom-light: #c9ce80;
$custom-dark: #000000;
JSON
{
  "hex": "#afba48",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 72
  },
  "hsl": {
    "h": 65.789,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.75799,
    "c": 0.13783,
    "h": 114.4
  },
  "luminance": 0.447
}

Semantic roles & 50–950 ramp

primary
#AFBA48
secondary
#9A96C8
accent
#53D55F
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA48

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

Preview Lab → · Contrast checker → · Palette generator →

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