#AFAB2B#AFAB2B

#AFAB2B is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.142 H 107.6°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#AFAB2B
RGBrgb(175, 171, 43)
HSLhsl(58, 61%, 43%)
HSVhsv(58, 75%, 69%)
CMYKcmyk(0%, 2.3%, 75.4%, 31.4%)
CIE-LABlab(68.33, -13.19, 61.70)
CIE-LCHlch(68.33, 63.09, 102.07°)
OKLaboklab(72.24% -0.043 0.1353)
OKLCHoklch(72.24% 0.142 107.6)
XYZxyz(32.6794, 38.4153, 7.9785)
Luminance0.3841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB2B #2B2FAF
analogous
#AF692B #AFAB2B #71AF2B
triadic
#AFAB2B #2BAFAB #AB2BAF
tetradic
#AFAB2B #2BAF69 #2B2FAF #AF2B71
square
#AFAB2B #2BAF69 #2B2FAF #AF2B71
split-complementary
#AFAB2B #2B71AF #692BAF
monochromatic
#4D4B13 #7E7B1F #AFAB2B #D1CD46 #DEDA77

Accessibility & contrast

On white

2.42
#AFAB2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#AFAB2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB2B
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB2B#FFFFFF#000000##000000
##AFAB2B1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA40D
Deuteranopia (green-blind)
#BCA935
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab2b;
/* rgb */ color: rgb(175, 171, 43);
/* oklch */ color: oklch(72.2% 0.142 107.6);
Tailwind
colors: {
  custom: {
    50: '#cbc36f',
    500: '#afab2b',
    950: '#000000',
  },
}
SCSS
$custom: #afab2b;
$custom-light: #cbc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#afab2b",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 43
  },
  "hsl": {
    "h": 58.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72242,
    "c": 0.14194,
    "h": 107.6
  },
  "luminance": 0.38414
}

Semantic roles & 50–950 ramp

primary
#AFAB2B
secondary
#7073C5
accent
#49E444
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB2B

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

Preview Lab → · Contrast checker → · Palette generator →

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