#AFB41B#AFB41B

#AFB41B 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#AFB41B
RGBrgb(175, 180, 27)
HSLhsl(62, 74%, 41%)
HSVhsv(62, 85%, 71%)
CMYKcmyk(2.8%, 0%, 85%, 29.4%)
CIE-LABlab(70.76, -18.33, 68.30)
CIE-LCHlch(70.76, 70.71, 105.02°)
OKLaboklab(74.17% -0.0584 0.1466)
OKLCHoklch(74.17% 0.158 111.7)
XYZxyz(34.1995, 41.8365, 7.3104)
Luminance0.4184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB41B #201BB4
analogous
#B46C1B #AFB41B #62B41B
triadic
#AFB41B #1BAFB4 #B41BAF
tetradic
#AFB41B #1BB46C #201BB4 #B41B62
square
#AFB41B #1BB46C #201BB4 #B41B62
split-complementary
#AFB41B #1B62B4 #6C1BB4
monochromatic
#484A0B #7B7F13 #AFB41B #DADF2D #E3E762

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #afb41b;
/* rgb */ color: rgb(175, 180, 27);
/* oklch */ color: oklch(74.2% 0.158 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6a',
    500: '#afb41b',
    950: '#000000',
  },
}
SCSS
$custom: #afb41b;
$custom-light: #cbca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb41b",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 27
  },
  "hsl": {
    "h": 61.961,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.74165,
    "c": 0.1578,
    "h": 111.7
  },
  "luminance": 0.41836
}

Semantic roles & 50–950 ramp

primary
#AFB41B
secondary
#625FCC
accent
#37F13D
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB41B

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

Preview Lab → · Contrast checker → · Palette generator →

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