#AFB022#AFB022

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

Color values

HEX#AFB022
RGBrgb(175, 176, 34)
HSLhsl(60, 68%, 41%)
HSVhsv(60, 81%, 69%)
CMYKcmyk(0.6%, 0%, 80.7%, 31%)
CIE-LABlab(69.67, -16.10, 65.64)
CIE-LCHlch(69.67, 67.58, 103.78°)
OKLaboklab(73.3% -0.0518 0.142)
OKLCHoklch(73.3% 0.151 110)
XYZxyz(33.4945, 40.2811, 7.5237)
Luminance0.4028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB022 #2322B0
analogous
#B06A22 #AFB022 #68B022
triadic
#AFB022 #22AFB0 #B022AF
tetradic
#AFB022 #22B06A #2322B0 #B02268
square
#AFB022 #22B06A #2322B0 #B02268
split-complementary
#AFB022 #2268B0 #6A22B0
monochromatic
#49490E #7C7D18 #AFB022 #D7D837 #E1E26A

Accessibility & contrast

On white

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

On black

9.06
#AFB022 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB022
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB022#FFFFFF#000000##000000
##AFB0221.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb022;
/* rgb */ color: rgb(175, 176, 34);
/* oklch */ color: oklch(73.3% 0.151 110.0);
Tailwind
colors: {
  custom: {
    50: '#cbc76b',
    500: '#afb022',
    950: '#000000',
  },
}
SCSS
$custom: #afb022;
$custom-light: #cbc76b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb022",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 34
  },
  "hsl": {
    "h": 60.423,
    "s": 67.619,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73302,
    "c": 0.15119,
    "h": 110
  },
  "luminance": 0.4028
}

Semantic roles & 50–950 ramp

primary
#AFB022
secondary
#6666C8
accent
#3DEA3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #AFB022

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

Preview Lab → · Contrast checker → · Palette generator →

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