#AFBA41#AFBA41

#AFBA41 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.7% C 0.143 H 114.3°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#AFBA41
RGBrgb(175, 186, 65)
HSLhsl(65, 48%, 49%)
HSVhsv(65, 65%, 73%)
CMYKcmyk(5.9%, 0%, 65.1%, 27.1%)
CIE-LABlab(72.64, -19.65, 57.73)
CIE-LCHlch(72.64, 60.98, 108.80°)
OKLaboklab(75.74% -0.0589 0.1306)
OKLCHoklch(75.74% 0.143 114.3)
XYZxyz(36.1932, 44.6141, 11.7048)
Luminance0.4461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA41 #4C41BA
analogous
#BA8941 #AFBA41 #72BA41
triadic
#AFBA41 #41AFBA #BA41AF
tetradic
#AFBA41 #41BA89 #4C41BA #BA4172
square
#AFBA41 #41BA89 #4C41BA #BA4172
split-complementary
#AFBA41 #4172BA #8941BA
monochromatic
#5A5F21 #848D31 #AFBA41 #C3CC6C #D6DC9A

Accessibility & contrast

On white

2.12
#AFBA41 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#AFBA41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA41
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA41#FFFFFF#000000##000000
##AFBA411.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B131
Deuteranopia (green-blind)
#C7B349
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba41;
/* rgb */ color: rgb(175, 186, 65);
/* oklch */ color: oklch(75.7% 0.143 114.3);
Tailwind
colors: {
  custom: {
    50: '#cace7c',
    500: '#afba41',
    950: '#000000',
  },
}
SCSS
$custom: #afba41;
$custom-light: #cace7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afba41",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 65
  },
  "hsl": {
    "h": 65.455,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.75735,
    "c": 0.14331,
    "h": 114.3
  },
  "luminance": 0.44613
}

Semantic roles & 50–950 ramp

primary
#AFBA41
secondary
#948FC8
accent
#50D85C
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA41

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

Preview Lab → · Contrast checker → · Palette generator →

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