#AFAD2F#AFAD2F

#AFAD2F is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.7% C 0.142 H 108.5°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#AFAD2F
RGBrgb(175, 173, 47)
HSLhsl(59, 58%, 44%)
HSVhsv(59, 73%, 69%)
CMYKcmyk(0%, 1.1%, 73.1%, 31.4%)
CIE-LABlab(68.90, -14.05, 60.87)
CIE-LCHlch(68.90, 62.47, 102.99°)
OKLaboklab(72.71% -0.045 0.1343)
OKLCHoklch(72.71% 0.142 108.5)
XYZxyz(33.1371, 39.2074, 8.5110)
Luminance0.3921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD2F #2F31AF
analogous
#AF6D2F #AFAD2F #71AF2F
triadic
#AFAD2F #2FAFAD #AD2FAF
tetradic
#AFAD2F #2FAF6D #2F31AF #AF2F71
square
#AFAD2F #2FAF6D #2F31AF #AF2F71
split-complementary
#AFAD2F #2F71AF #6D2FAF
monochromatic
#4F4E15 #7F7D22 #AFAD2F #CFCD4C #DCDA7C

Accessibility & contrast

On white

2.38
#AFAD2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#AFAD2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD2F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD2F#FFFFFF#000000##000000
##AFAD2F1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA616
Deuteranopia (green-blind)
#BDAA39
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad2f;
/* rgb */ color: rgb(175, 173, 47);
/* oklch */ color: oklch(72.7% 0.142 108.5);
Tailwind
colors: {
  custom: {
    50: '#cac571',
    500: '#afad2f',
    950: '#000000',
  },
}
SCSS
$custom: #afad2f;
$custom-light: #cac571;
$custom-dark: #000000;
JSON
{
  "hex": "#afad2f",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 47
  },
  "hsl": {
    "h": 59.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72709,
    "c": 0.14159,
    "h": 108.5
  },
  "luminance": 0.39206
}

Semantic roles & 50–950 ramp

primary
#AFAD2F
secondary
#7577C4
accent
#49E147
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD2F

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

Preview Lab → · Contrast checker → · Palette generator →

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