#AFB41C#AFB41C

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

Color values

HEX#AFB41C
RGBrgb(175, 180, 28)
HSLhsl(62, 73%, 41%)
HSVhsv(62, 84%, 71%)
CMYKcmyk(2.8%, 0%, 84.4%, 29.4%)
CIE-LABlab(70.76, -18.30, 68.07)
CIE-LCHlch(70.76, 70.49, 105.05°)
OKLaboklab(74.17% -0.0583 0.1463)
OKLCHoklch(74.17% 0.157 111.7)
XYZxyz(34.2113, 41.8412, 7.3724)
Luminance0.4184 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB41C #211CB4
analogous
#B46D1C #AFB41C #63B41C
triadic
#AFB41C #1CAFB4 #B41CAF
tetradic
#AFB41C #1CB46D #211CB4 #B41C63
square
#AFB41C #1CB46D #211CB4 #B41C63
split-complementary
#AFB41C #1C63B4 #6D1CB4
monochromatic
#484A0C #7C7F14 #AFB41C #D9DF2F #E3E764

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #afb41c;
/* rgb */ color: rgb(175, 180, 28);
/* oklch */ color: oklch(74.2% 0.157 111.7);
Tailwind
colors: {
  custom: {
    50: '#cbca6a',
    500: '#afb41c',
    950: '#000000',
  },
}
SCSS
$custom: #afb41c;
$custom-light: #cbca6a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb41c",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 28
  },
  "hsl": {
    "h": 61.974,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.74168,
    "c": 0.15746,
    "h": 111.7
  },
  "luminance": 0.4184
}

Semantic roles & 50–950 ramp

primary
#AFB41C
secondary
#6460CC
accent
#38F03E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB41C

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

Preview Lab → · Contrast checker → · Palette generator →

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