#AFAB40#AFAB40

#AFAB40 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.128 H 107.2°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AFAB40
RGBrgb(175, 171, 64)
HSLhsl(58, 46%, 47%)
HSVhsv(58, 63%, 69%)
CMYKcmyk(0%, 2.3%, 63.4%, 31.4%)
CIE-LABlab(68.47, -12.07, 53.76)
CIE-LCHlch(68.47, 55.10, 102.65°)
OKLaboklab(72.4% -0.0377 0.1221)
OKLCHoklch(72.4% 0.128 107.2)
XYZxyz(33.1686, 38.6110, 10.5550)
Luminance0.3861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB40 #4044AF
analogous
#AF7440 #AFAB40 #7CAF40
triadic
#AFAB40 #40AFAB #AB40AF
tetradic
#AFAB40 #40AF74 #4044AF #AF407C
square
#AFAB40 #40AF74 #4044AF #AF407C
split-complementary
#AFAB40 #407CAF #7440AF
monochromatic
#55531F #827F30 #AFAB40 #C7C365 #D7D592

Accessibility & contrast

On white

2.41
#AFAB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#AFAB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB40
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB40#FFFFFF#000000##000000
##AFAB401.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BBA946
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab40;
/* rgb */ color: rgb(175, 171, 64);
/* oklch */ color: oklch(72.4% 0.128 107.2);
Tailwind
colors: {
  custom: {
    50: '#cac37a',
    500: '#afab40',
    950: '#000000',
  },
}
SCSS
$custom: #afab40;
$custom-light: #cac37a;
$custom-dark: #000000;
JSON
{
  "hex": "#afab40",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 57.838,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.72402,
    "c": 0.1278,
    "h": 107.2
  },
  "luminance": 0.3861
}

Semantic roles & 50–950 ramp

primary
#AFAB40
secondary
#888AC3
accent
#56D652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB40

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

Preview Lab → · Contrast checker → · Palette generator →

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