#AFAC3C#AFAC3C

#AFAC3C is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.6% C 0.132 H 107.8°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#AFAC3C
RGBrgb(175, 172, 60)
HSLhsl(58, 49%, 46%)
HSVhsv(58, 66%, 69%)
CMYKcmyk(0%, 1.7%, 65.7%, 31.4%)
CIE-LABlab(68.71, -12.84, 55.70)
CIE-LCHlch(68.71, 57.16, 102.98°)
OKLaboklab(72.59% -0.0403 0.1256)
OKLCHoklch(72.59% 0.132 107.8)
XYZxyz(33.2485, 38.9463, 10.0401)
Luminance0.3895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC3C #3C3FAF
analogous
#AF723C #AFAC3C #78AF3C
triadic
#AFAC3C #3CAFAC #AC3CAF
tetradic
#AFAC3C #3CAF72 #3C3FAF #AF3C78
square
#AFAC3C #3CAF72 #3C3FAF #AF3C78
split-complementary
#AFAC3C #3C78AF #723CAF
monochromatic
#54521D #817F2C #AFAC3C #C8C660 #D8D68D

Accessibility & contrast

On white

2.39
#AFAC3C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#AFAC3C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC3C
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC3C#FFFFFF#000000##000000
##AFAC3C1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA52D
Deuteranopia (green-blind)
#BCAA43
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac3c;
/* rgb */ color: rgb(175, 172, 60);
/* oklch */ color: oklch(72.6% 0.132 107.8);
Tailwind
colors: {
  custom: {
    50: '#cac478',
    500: '#afac3c',
    950: '#000000',
  },
}
SCSS
$custom: #afac3c;
$custom-light: #cac478;
$custom-dark: #000000;
JSON
{
  "hex": "#afac3c",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 60
  },
  "hsl": {
    "h": 58.435,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72586,
    "c": 0.13189,
    "h": 107.8
  },
  "luminance": 0.38945
}

Semantic roles & 50–950 ramp

primary
#AFAC3C
secondary
#8486C3
accent
#53D84F
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC3C

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

Preview Lab → · Contrast checker → · Palette generator →

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