#AFAC2A#AFAC2A

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

Color values

HEX#AFAC2A
RGBrgb(175, 172, 42)
HSLhsl(59, 61%, 43%)
HSVhsv(59, 76%, 69%)
CMYKcmyk(0%, 1.7%, 76%, 31.4%)
CIE-LABlab(68.60, -13.75, 62.28)
CIE-LCHlch(68.60, 63.78, 102.45°)
OKLaboklab(72.46% -0.0446 0.1363)
OKLCHoklch(72.46% 0.143 108.1)
XYZxyz(32.8509, 38.7873, 7.9463)
Luminance0.3879 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC2A #2A2DAF
analogous
#AF6A2A #AFAC2A #6FAF2A
triadic
#AFAC2A #2AAFAC #AC2AAF
tetradic
#AFAC2A #2AAF6A #2A2DAF #AF2A6F
square
#AFAC2A #2AAF6A #2A2DAF #AF2A6F
split-complementary
#AFAC2A #2A6FAF #6A2AAF
monochromatic
#4C4B12 #7E7B1E #AFAC2A #D2CF44 #DEDC75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC2A#FFFFFF#000000##000000
##AFAC2A1.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)
#BBA509
Deuteranopia (green-blind)
#BDA935
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac2a;
/* rgb */ color: rgb(175, 172, 42);
/* oklch */ color: oklch(72.5% 0.143 108.1);
Tailwind
colors: {
  custom: {
    50: '#cbc46e',
    500: '#afac2a',
    950: '#000000',
  },
}
SCSS
$custom: #afac2a;
$custom-light: #cbc46e;
$custom-dark: #000000;
JSON
{
  "hex": "#afac2a",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 42
  },
  "hsl": {
    "h": 58.647,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72457,
    "c": 0.14344,
    "h": 108.1
  },
  "luminance": 0.38786
}

Semantic roles & 50–950 ramp

primary
#AFAC2A
secondary
#6F71C6
accent
#47E443
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC2A

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

Preview Lab → · Contrast checker → · Palette generator →

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