#AFB021#AFB021

#AFB021 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.3% C 0.152 H 110.1°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#AFB021
RGBrgb(175, 176, 33)
HSLhsl(60, 68%, 41%)
HSVhsv(60, 81%, 69%)
CMYKcmyk(0.6%, 0%, 81.3%, 31%)
CIE-LABlab(69.67, -16.13, 65.90)
CIE-LCHlch(69.67, 67.85, 103.75°)
OKLaboklab(73.3% -0.052 0.1424)
OKLCHoklch(73.3% 0.152 110.1)
XYZxyz(33.4803, 40.2754, 7.4489)
Luminance0.4027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB021 #2221B0
analogous
#B06921 #AFB021 #67B021
triadic
#AFB021 #21AFB0 #B021AF
tetradic
#AFB021 #21B069 #2221B0 #B02167
square
#AFB021 #21B069 #2221B0 #B02167
split-complementary
#AFB021 #2167B0 #6921B0
monochromatic
#49490E #7C7C17 #AFB021 #D8D935 #E2E369

Accessibility & contrast

On white

2.32
#AFB021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.05
#AFB021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB021
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB021#FFFFFF#000000##000000
##AFB0211.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#C0AC2F
Tritanopia (blue-blind)
#BCA496
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb021;
/* rgb */ color: rgb(175, 176, 33);
/* oklch */ color: oklch(73.3% 0.152 110.1);
Tailwind
colors: {
  custom: {
    50: '#cbc76b',
    500: '#afb021',
    950: '#000000',
  },
}
SCSS
$custom: #afb021;
$custom-light: #cbc76b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb021",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 33
  },
  "hsl": {
    "h": 60.42,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.73297,
    "c": 0.15161,
    "h": 110.1
  },
  "luminance": 0.40274
}

Semantic roles & 50–950 ramp

primary
#AFB021
secondary
#6564C8
accent
#3DEB3E
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB021

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

Preview Lab → · Contrast checker → · Palette generator →

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