#AFAB2A#AFAB2A

#AFAB2A 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#AFAB2A
RGBrgb(175, 171, 42)
HSLhsl(58, 61%, 43%)
HSVhsv(58, 76%, 69%)
CMYKcmyk(0%, 2.3%, 76%, 31.4%)
CIE-LABlab(68.32, -13.23, 62.02)
CIE-LCHlch(68.32, 63.42, 102.05°)
OKLaboklab(72.24% -0.0432 0.1358)
OKLCHoklch(72.24% 0.142 107.6)
XYZxyz(32.6613, 38.4081, 7.8831)
Luminance0.3841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB2A #2A2EAF
analogous
#AF682A #AFAB2A #71AF2A
triadic
#AFAB2A #2AAFAB #AB2AAF
tetradic
#AFAB2A #2AAF68 #2A2EAF #AF2A71
square
#AFAB2A #2AAF68 #2A2EAF #AF2A71
split-complementary
#AFAB2A #2A71AF #682AAF
monochromatic
#4C4B12 #7E7B1E #AFAB2A #D2CE44 #DEDB75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB2A#FFFFFF#000000##000000
##AFAB2A1.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)
#BAA40A
Deuteranopia (green-blind)
#BCA934
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab2a;
/* rgb */ color: rgb(175, 171, 42);
/* oklch */ color: oklch(72.2% 0.142 107.6);
Tailwind
colors: {
  custom: {
    50: '#cbc36e',
    500: '#afab2a',
    950: '#000000',
  },
}
SCSS
$custom: #afab2a;
$custom-light: #cbc36e;
$custom-dark: #000000;
JSON
{
  "hex": "#afab2a",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 42
  },
  "hsl": {
    "h": 58.195,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72236,
    "c": 0.14249,
    "h": 107.6
  },
  "luminance": 0.38407
}

Semantic roles & 50–950 ramp

primary
#AFAB2A
secondary
#6F72C6
accent
#48E443
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB2A

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

Preview Lab → · Contrast checker → · Palette generator →

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