#AFAB2C#AFAB2C

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

Color values

HEX#AFAB2C
RGBrgb(175, 171, 44)
HSLhsl(58, 60%, 43%)
HSVhsv(58, 75%, 69%)
CMYKcmyk(0%, 2.3%, 74.9%, 31.4%)
CIE-LABlab(68.33, -13.15, 61.37)
CIE-LCHlch(68.33, 62.76, 102.09°)
OKLaboklab(72.25% -0.0428 0.1348)
OKLCHoklch(72.25% 0.141 107.6)
XYZxyz(32.6980, 38.4227, 8.0763)
Luminance0.3842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB2C #2C30AF
analogous
#AF692C #AFAB2C #71AF2C
triadic
#AFAB2C #2CAFAB #AB2CAF
tetradic
#AFAB2C #2CAF69 #2C30AF #AF2C71
square
#AFAB2C #2CAF69 #2C30AF #AF2C71
split-complementary
#AFAB2C #2C71AF #692CAF
monochromatic
#4D4B13 #7E7B20 #AFAB2C #D1CD47 #DDDA78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB2C#FFFFFF#000000##000000
##AFAB2C1.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)
#BAA410
Deuteranopia (green-blind)
#BCA936
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab2c;
/* rgb */ color: rgb(175, 171, 44);
/* oklch */ color: oklch(72.2% 0.141 107.6);
Tailwind
colors: {
  custom: {
    50: '#cbc36f',
    500: '#afab2c',
    950: '#000000',
  },
}
SCSS
$custom: #afab2c;
$custom-light: #cbc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#afab2c",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 44
  },
  "hsl": {
    "h": 58.168,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.72248,
    "c": 0.14138,
    "h": 107.6
  },
  "luminance": 0.38422
}

Semantic roles & 50–950 ramp

primary
#AFAB2C
secondary
#7274C5
accent
#4AE345
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB2C

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

Preview Lab → · Contrast checker → · Palette generator →

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