#AFAC2F#AFAC2F

#AFAC2F is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.141 H 108.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFAC2F
RGBrgb(175, 172, 47)
HSLhsl(59, 58%, 44%)
HSVhsv(59, 73%, 69%)
CMYKcmyk(0%, 1.7%, 73.1%, 31.4%)
CIE-LABlab(68.62, -13.53, 60.60)
CIE-LCHlch(68.62, 62.10, 102.59°)
OKLaboklab(72.49% -0.0436 0.1337)
OKLCHoklch(72.49% 0.141 108.1)
XYZxyz(32.9461, 38.8253, 8.4473)
Luminance0.3882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC2F #2F32AF
analogous
#AF6C2F #AFAC2F #72AF2F
triadic
#AFAC2F #2FAFAC #AC2FAF
tetradic
#AFAC2F #2FAF6C #2F32AF #AF2F72
square
#AFAC2F #2FAF6C #2F32AF #AF2F72
split-complementary
#AFAC2F #2F72AF #6C2FAF
monochromatic
#4F4D15 #7F7D22 #AFAC2F #CFCC4C #DCDA7C

Accessibility & contrast

On white

2.40
#AFAC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AFAC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC2F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC2F#FFFFFF#000000##000000
##AFAC2F1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA517
Deuteranopia (green-blind)
#BDA938
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac2f;
/* rgb */ color: rgb(175, 172, 47);
/* oklch */ color: oklch(72.5% 0.141 108.1);
Tailwind
colors: {
  custom: {
    50: '#cac471',
    500: '#afac2f',
    950: '#000000',
  },
}
SCSS
$custom: #afac2f;
$custom-light: #cac471;
$custom-dark: #000000;
JSON
{
  "hex": "#afac2f",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 47
  },
  "hsl": {
    "h": 58.594,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.72488,
    "c": 0.14061,
    "h": 108.1
  },
  "luminance": 0.38824
}

Semantic roles & 50–950 ramp

primary
#AFAC2F
secondary
#7577C4
accent
#4BE147
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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