#AFAC3A#AFAC3A

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

Color values

HEX#AFAC3A
RGBrgb(175, 172, 58)
HSLhsl(58, 50%, 46%)
HSVhsv(58, 67%, 69%)
CMYKcmyk(0%, 1.7%, 66.9%, 31.4%)
CIE-LABlab(68.70, -12.96, 56.50)
CIE-LCHlch(68.70, 57.97, 102.92°)
OKLaboklab(72.57% -0.0408 0.127)
OKLCHoklch(72.57% 0.133 107.8)
XYZxyz(33.1966, 38.9255, 9.7669)
Luminance0.3892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC3A #3A3DAF
analogous
#AF723A #AFAC3A #77AF3A
triadic
#AFAC3A #3AAFAC #AC3AAF
tetradic
#AFAC3A #3AAF72 #3A3DAF #AF3A77
square
#AFAC3A #3AAF72 #3A3DAF #AF3A77
split-complementary
#AFAC3A #3A77AF #723AAF
monochromatic
#53521C #817F2B #AFAC3A #C9C75D #D9D78B

Accessibility & contrast

On white

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

On black

8.78
#AFAC3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC3A
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC3A#FFFFFF#000000##000000
##AFAC3A1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afac3a;
/* rgb */ color: rgb(175, 172, 58);
/* oklch */ color: oklch(72.6% 0.133 107.8);
Tailwind
colors: {
  custom: {
    50: '#cac477',
    500: '#afac3a',
    950: '#000000',
  },
}
SCSS
$custom: #afac3a;
$custom-light: #cac477;
$custom-dark: #000000;
JSON
{
  "hex": "#afac3a",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 58
  },
  "hsl": {
    "h": 58.462,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72569,
    "c": 0.13336,
    "h": 107.8
  },
  "luminance": 0.38924
}

Semantic roles & 50–950 ramp

primary
#AFAC3A
secondary
#8284C3
accent
#52DA4E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC3A

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

Preview Lab → · Contrast checker → · Palette generator →

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