#AFBA40#AFBA40

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

Color values

HEX#AFBA40
RGBrgb(175, 186, 64)
HSLhsl(65, 49%, 49%)
HSVhsv(65, 66%, 73%)
CMYKcmyk(5.9%, 0%, 65.6%, 27.1%)
CIE-LABlab(72.63, -19.71, 58.12)
CIE-LCHlch(72.63, 61.38, 108.73°)
OKLaboklab(75.73% -0.0592 0.1313)
OKLCHoklch(75.73% 0.144 114.3)
XYZxyz(36.1644, 44.6026, 11.5536)
Luminance0.4460 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA40 #4B40BA
analogous
#BA8840 #AFBA40 #72BA40
triadic
#AFBA40 #40AFBA #BA40AF
tetradic
#AFBA40 #40BA88 #4B40BA #BA4072
square
#AFBA40 #40BA88 #4B40BA #BA4072
split-complementary
#AFBA40 #4072BA #8840BA
monochromatic
#595F21 #848C30 #AFBA40 #C3CC6B #D6DC99

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA40#FFFFFF#000000##000000
##AFBA401.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)
#C7B12F
Deuteranopia (green-blind)
#C7B348
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba40;
/* rgb */ color: rgb(175, 186, 64);
/* oklch */ color: oklch(75.7% 0.144 114.3);
Tailwind
colors: {
  custom: {
    50: '#cace7b',
    500: '#afba40',
    950: '#000000',
  },
}
SCSS
$custom: #afba40;
$custom-light: #cace7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afba40",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 65.41,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75726,
    "c": 0.14404,
    "h": 114.3
  },
  "luminance": 0.44602
}

Semantic roles & 50–950 ramp

primary
#AFBA40
secondary
#938EC8
accent
#4FD85C
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA40

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

Preview Lab → · Contrast checker → · Palette generator →

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