#AFB41F#AFB41F

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

Color values

HEX#AFB41F
RGBrgb(175, 180, 31)
HSLhsl(62, 71%, 41%)
HSVhsv(62, 83%, 71%)
CMYKcmyk(2.8%, 0%, 82.8%, 29.4%)
CIE-LABlab(70.77, -18.22, 67.36)
CIE-LCHlch(70.77, 69.78, 105.13°)
OKLaboklab(74.18% -0.0579 0.1452)
OKLCHoklch(74.18% 0.156 111.7)
XYZxyz(34.2490, 41.8563, 7.5710)
Luminance0.4185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB41F #241FB4
analogous
#B46F1F #AFB41F #65B41F
triadic
#AFB41F #1FAFB4 #B41FAF
tetradic
#AFB41F #1FB46F #241FB4 #B41F65
square
#AFB41F #1FB46F #241FB4 #B41F65
split-complementary
#AFB41F #1F65B4 #6F1FB4
monochromatic
#494C0D #7C8016 #AFB41F #D6DC34 #E1E568

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB41F#FFFFFF#000000##000000
##AFB41F1.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)
#C3AF2E
Tritanopia (blue-blind)
#BCA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb41f;
/* rgb */ color: rgb(175, 180, 31);
/* oklch */ color: oklch(74.2% 0.156 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6b',
    500: '#afb41f',
    950: '#000000',
  },
}
SCSS
$custom: #afb41f;
$custom-light: #cbca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb41f",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 62.013,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.7418,
    "c": 0.15634,
    "h": 111.7
  },
  "luminance": 0.41855
}

Semantic roles & 50–950 ramp

primary
#AFB41F
secondary
#6864CB
accent
#3AED40
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB41F

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

Preview Lab → · Contrast checker → · Palette generator →

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