#AFAB36#AFAB36

#AFAB36 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.135 H 107.4°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFAB36
RGBrgb(175, 171, 54)
HSLhsl(58, 53%, 45%)
HSVhsv(58, 69%, 69%)
CMYKcmyk(0%, 2.3%, 69.1%, 31.4%)
CIE-LABlab(68.39, -12.66, 57.78)
CIE-LCHlch(68.39, 59.15, 102.36°)
OKLaboklab(72.32% -0.0404 0.129)
OKLCHoklch(72.32% 0.135 107.4)
XYZxyz(32.9092, 38.5072, 9.1884)
Luminance0.3851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB36 #363AAF
analogous
#AF6F36 #AFAB36 #76AF36
triadic
#AFAB36 #36AFAB #AB36AF
tetradic
#AFAB36 #36AF6F #363AAF #AF3676
square
#AFAB36 #36AF6F #363AAF #AF3676
split-complementary
#AFAB36 #3676AF #6F36AF
monochromatic
#515019 #807D28 #AFAB36 #CBC757 #DAD786

Accessibility & contrast

On white

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

On black

8.70
#AFAB36 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB36
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB36#FFFFFF#000000##000000
##AFAB361.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A424
Deuteranopia (green-blind)
#BBA93E
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab36;
/* rgb */ color: rgb(175, 171, 54);
/* oklch */ color: oklch(72.3% 0.135 107.4);
Tailwind
colors: {
  custom: {
    50: '#cac374',
    500: '#afab36',
    950: '#000000',
  },
}
SCSS
$custom: #afab36;
$custom-light: #cac374;
$custom-dark: #000000;
JSON
{
  "hex": "#afab36",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 54
  },
  "hsl": {
    "h": 58.017,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.72317,
    "c": 0.13517,
    "h": 107.4
  },
  "luminance": 0.38506
}

Semantic roles & 50–950 ramp

primary
#AFAB36
secondary
#7D80C3
accent
#50DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB36

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

Preview Lab → · Contrast checker → · Palette generator →

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