#AFAF2F#AFAF2F

#AFAF2F is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.144 H 109.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AFAF2F
RGBrgb(175, 175, 47)
HSLhsl(60, 58%, 44%)
HSVhsv(60, 73%, 69%)
CMYKcmyk(0%, 0%, 73.1%, 31.4%)
CIE-LABlab(69.46, -15.07, 61.39)
CIE-LCHlch(69.46, 63.22, 103.79°)
OKLaboklab(73.15% -0.0479 0.1354)
OKLCHoklch(73.15% 0.144 109.5)
XYZxyz(33.5235, 39.9801, 8.6398)
Luminance0.3998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF2F #2F2FAF
analogous
#AF6F2F #AFAF2F #6FAF2F
triadic
#AFAF2F #2FAFAF #AF2FAF
tetradic
#AFAF2F #2FAF6F #2F2FAF #AF2F6F
square
#AFAF2F #2FAF6F #2F2FAF #AF2F6F
split-complementary
#AFAF2F #2F6FAF #6F2FAF
monochromatic
#4F4F15 #7F7F22 #AFAF2F #CFCF4C #DCDC7C

Accessibility & contrast

On white

2.33
#AFAF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AFAF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF2F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF2F#FFFFFF#000000##000000
##AFAF2F1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA715
Deuteranopia (green-blind)
#BFAB39
Tritanopia (blue-blind)
#BCA496
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf2f;
/* rgb */ color: rgb(175, 175, 47);
/* oklch */ color: oklch(73.2% 0.144 109.5);
Tailwind
colors: {
  custom: {
    50: '#cac671',
    500: '#afaf2f',
    950: '#000000',
  },
}
SCSS
$custom: #afaf2f;
$custom-light: #cac671;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf2f",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73151,
    "c": 0.14359,
    "h": 109.5
  },
  "luminance": 0.39979
}

Semantic roles & 50–950 ramp

primary
#AFAF2F
secondary
#7575C4
accent
#47E147
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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