#AFAB3F#AFAB3F

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

Color values

HEX#AFAB3F
RGBrgb(175, 171, 63)
HSLhsl(58, 47%, 47%)
HSVhsv(58, 64%, 69%)
CMYKcmyk(0%, 2.3%, 64%, 31.4%)
CIE-LABlab(68.46, -12.13, 54.18)
CIE-LCHlch(68.46, 55.52, 102.62°)
OKLaboklab(72.39% -0.038 0.1229)
OKLCHoklch(72.39% 0.129 107.2)
XYZxyz(33.1404, 38.5997, 10.4064)
Luminance0.3860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB3F #3F43AF
analogous
#AF733F #AFAB3F #7BAF3F
triadic
#AFAB3F #3FAFAB #AB3FAF
tetradic
#AFAB3F #3FAF73 #3F43AF #AF3F7B
square
#AFAB3F #3FAF73 #3F43AF #AF3F7B
split-complementary
#AFAB3F #3F7BAF #733FAF
monochromatic
#55531F #827F2F #AFAB3F #C7C464 #D7D591

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB3F#FFFFFF#000000##000000
##AFAB3F1.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)
#B9A531
Deuteranopia (green-blind)
#BBA946
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab3f;
/* rgb */ color: rgb(175, 171, 63);
/* oklch */ color: oklch(72.4% 0.129 107.2);
Tailwind
colors: {
  custom: {
    50: '#cac379',
    500: '#afab3f',
    950: '#000000',
  },
}
SCSS
$custom: #afab3f;
$custom-light: #cac379;
$custom-dark: #000000;
JSON
{
  "hex": "#afab3f",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 63
  },
  "hsl": {
    "h": 57.857,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.72393,
    "c": 0.12859,
    "h": 107.2
  },
  "luminance": 0.38599
}

Semantic roles & 50–950 ramp

primary
#AFAB3F
secondary
#8789C3
accent
#56D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAB3F

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

Preview Lab → · Contrast checker → · Palette generator →

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