#AFAC3B#AFAC3B

#AFAC3B 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.79:1 contrast (WCAG AA passes).

Color values

HEX#AFAC3B
RGBrgb(175, 172, 59)
HSLhsl(58, 50%, 46%)
HSVhsv(58, 66%, 69%)
CMYKcmyk(0%, 1.7%, 66.3%, 31.4%)
CIE-LABlab(68.70, -12.90, 56.10)
CIE-LCHlch(68.70, 57.57, 102.95°)
OKLaboklab(72.58% -0.0406 0.1263)
OKLCHoklch(72.58% 0.133 107.8)
XYZxyz(33.2223, 38.9358, 9.9022)
Luminance0.3893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC3B #3B3EAF
analogous
#AF723B #AFAC3B #78AF3B
triadic
#AFAC3B #3BAFAC #AC3BAF
tetradic
#AFAC3B #3BAF72 #3B3EAF #AF3B78
square
#AFAC3B #3BAF72 #3B3EAF #AF3B78
split-complementary
#AFAC3B #3B78AF #723BAF
monochromatic
#53521C #817F2C #AFAC3B #C9C65E #D8D68C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC3B#FFFFFF#000000##000000
##AFAC3B1.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)
#BAA52B
Deuteranopia (green-blind)
#BCAA42
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac3b;
/* rgb */ color: rgb(175, 172, 59);
/* oklch */ color: oklch(72.6% 0.133 107.8);
Tailwind
colors: {
  custom: {
    50: '#cac477',
    500: '#afac3b',
    950: '#000000',
  },
}
SCSS
$custom: #afac3b;
$custom-light: #cac477;
$custom-dark: #000000;
JSON
{
  "hex": "#afac3b",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 59
  },
  "hsl": {
    "h": 58.448,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72577,
    "c": 0.13264,
    "h": 107.8
  },
  "luminance": 0.38935
}

Semantic roles & 50–950 ramp

primary
#AFAC3B
secondary
#8385C3
accent
#52D94F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC3B

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

Preview Lab → · Contrast checker → · Palette generator →

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