#AFAC2C#AFAC2C

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

Color values

HEX#AFAC2C
RGBrgb(175, 172, 44)
HSLhsl(59, 60%, 43%)
HSVhsv(59, 75%, 69%)
CMYKcmyk(0%, 1.7%, 74.9%, 31.4%)
CIE-LABlab(68.61, -13.67, 61.62)
CIE-LCHlch(68.61, 63.12, 102.50°)
OKLaboklab(72.47% -0.0442 0.1353)
OKLCHoklch(72.47% 0.142 108.1)
XYZxyz(32.8876, 38.8019, 8.1395)
Luminance0.3880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC2C #2C2FAF
analogous
#AF6A2C #AFAC2C #70AF2C
triadic
#AFAC2C #2CAFAC #AC2CAF
tetradic
#AFAC2C #2CAF6A #2C2FAF #AF2C70
square
#AFAC2C #2CAF6A #2C2FAF #AF2C70
split-complementary
#AFAC2C #2C70AF #6A2CAF
monochromatic
#4D4C13 #7E7C20 #AFAC2C #D1CE47 #DDDB78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC2C#FFFFFF#000000##000000
##AFAC2C1.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)
#BBA510
Deuteranopia (green-blind)
#BDA936
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac2c;
/* rgb */ color: rgb(175, 172, 44);
/* oklch */ color: oklch(72.5% 0.142 108.1);
Tailwind
colors: {
  custom: {
    50: '#cbc46f',
    500: '#afac2c',
    950: '#000000',
  },
}
SCSS
$custom: #afac2c;
$custom-light: #cbc46f;
$custom-dark: #000000;
JSON
{
  "hex": "#afac2c",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 44
  },
  "hsl": {
    "h": 58.626,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.72469,
    "c": 0.14235,
    "h": 108.1
  },
  "luminance": 0.38801
}

Semantic roles & 50–950 ramp

primary
#AFAC2C
secondary
#7274C5
accent
#48E345
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC2C

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

Preview Lab → · Contrast checker → · Palette generator →

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