#AFBA1D#AFBA1D

#AFBA1D is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.5% C 0.163 H 114.0°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#AFBA1D
RGBrgb(175, 186, 29)
HSLhsl(64, 73%, 42%)
HSVhsv(64, 84%, 73%)
CMYKcmyk(5.9%, 0%, 84.4%, 27.1%)
CIE-LABlab(72.44, -21.27, 69.25)
CIE-LCHlch(72.44, 72.44, 107.07°)
OKLaboklab(75.52% -0.0664 0.149)
OKLCHoklch(75.52% 0.163 114)
XYZxyz(35.4610, 44.3212, 7.8490)
Luminance0.4432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA1D #281DBA
analogous
#BA771D #AFBA1D #60BA1D
triadic
#AFBA1D #1DAFBA #BA1DAF
tetradic
#AFBA1D #1DBA77 #281DBA #BA1D60
square
#AFBA1D #1DBA77 #281DBA #BA1D60
split-complementary
#AFBA1D #1D60BA #771DBA
monochromatic
#4B500C #7D8515 #AFBA1D #D4DF35 #DFE86A

Accessibility & contrast

On white

2.13
#AFBA1D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#AFBA1D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA1D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA1D#FFFFFF#000000##000000
##AFBA1D1.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B000
Deuteranopia (green-blind)
#C8B32F
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba1d;
/* rgb */ color: rgb(175, 186, 29);
/* oklch */ color: oklch(75.5% 0.163 114.0);
Tailwind
colors: {
  custom: {
    50: '#cbce6b',
    500: '#afba1d',
    950: '#000000',
  },
}
SCSS
$custom: #afba1d;
$custom-light: #cbce6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afba1d",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 29
  },
  "hsl": {
    "h": 64.204,
    "s": 73.023,
    "l": 42.157
  },
  "oklch": {
    "l": 0.75517,
    "c": 0.16313,
    "h": 114
  },
  "luminance": 0.4432
}

Semantic roles & 50–950 ramp

primary
#AFBA1D
secondary
#6D65CD
accent
#38F045
background
#FDFCF6
surface
#FAF9EC
border
#D3D2C7
text
#141308
muted
#83827A

Preview Lab

Preview with #AFBA1D

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

Preview Lab → · Contrast checker → · Palette generator →

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