#AFB41A#AFB41A

#AFB41A is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.158 H 111.7°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#AFB41A
RGBrgb(175, 180, 26)
HSLhsl(62, 75%, 40%)
HSVhsv(62, 86%, 71%)
CMYKcmyk(2.8%, 0%, 85.6%, 29.4%)
CIE-LABlab(70.75, -18.35, 68.51)
CIE-LCHlch(70.75, 70.93, 105.00°)
OKLaboklab(74.16% -0.0586 0.1469)
OKLCHoklch(74.16% 0.158 111.7)
XYZxyz(34.1882, 41.8320, 7.2505)
Luminance0.4183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB41A #1F1AB4
analogous
#B46C1A #AFB41A #62B41A
triadic
#AFB41A #1AAFB4 #B41AAF
tetradic
#AFB41A #1AB46C #1F1AB4 #B41A62
square
#AFB41A #1AB46C #1F1AB4 #B41A62
split-complementary
#AFB41A #1A62B4 #6C1AB4
monochromatic
#47490B #7B7F12 #AFB41A #DAE02B #E4E860

Accessibility & contrast

On white

2.24
#AFB41A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#AFB41A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB41A
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB41A#FFFFFF#000000##000000
##AFB41A1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AB00
Deuteranopia (green-blind)
#C3AF2B
Tritanopia (blue-blind)
#BCA899
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb41a;
/* rgb */ color: rgb(175, 180, 26);
/* oklch */ color: oklch(74.2% 0.158 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca69',
    500: '#afb41a',
    950: '#000000',
  },
}
SCSS
$custom: #afb41a;
$custom-light: #cbca69;
$custom-dark: #000000;
JSON
{
  "hex": "#afb41a",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 26
  },
  "hsl": {
    "h": 61.948,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.74161,
    "c": 0.15814,
    "h": 111.7
  },
  "luminance": 0.41831
}

Semantic roles & 50–950 ramp

primary
#AFB41A
secondary
#615DCC
accent
#36F13C
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB41A

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

Preview Lab → · Contrast checker → · Palette generator →

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