#AFAC48#AFAC48

#AFAC48 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.7% C 0.122 H 107.5°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#AFAC48
RGBrgb(175, 172, 72)
HSLhsl(58, 42%, 48%)
HSVhsv(58, 59%, 69%)
CMYKcmyk(0%, 1.7%, 58.9%, 31.4%)
CIE-LABlab(68.81, -12.03, 50.60)
CIE-LCHlch(68.81, 52.01, 103.38°)
OKLaboklab(72.7% -0.0367 0.1165)
OKLCHoklch(72.7% 0.122 107.5)
XYZxyz(33.6024, 39.0879, 11.9043)
Luminance0.3909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC48 #484BAF
analogous
#AF7848 #AFAC48 #7EAF48
triadic
#AFAC48 #48AFAC #AC48AF
tetradic
#AFAC48 #48AF78 #484BAF #AF487E
square
#AFAC48 #48AF78 #484BAF #AF487E
split-complementary
#AFAC48 #487EAF #7848AF
monochromatic
#585724 #848136 #AFAC48 #C4C270 #D6D49B

Accessibility & contrast

On white

2.38
#AFAC48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#AFAC48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC48
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC48#FFFFFF#000000##000000
##AFAC481.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A63D
Deuteranopia (green-blind)
#BBAA4E
Tritanopia (blue-blind)
#BBA296
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afac48;
/* rgb */ color: rgb(175, 172, 72);
/* oklch */ color: oklch(72.7% 0.122 107.5);
Tailwind
colors: {
  custom: {
    50: '#c9c47f',
    500: '#afac48',
    950: '#000000',
  },
}
SCSS
$custom: #afac48;
$custom-light: #c9c47f;
$custom-dark: #000000;
JSON
{
  "hex": "#afac48",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 72
  },
  "hsl": {
    "h": 58.252,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.727,
    "c": 0.12217,
    "h": 107.5
  },
  "luminance": 0.39087
}

Semantic roles & 50–950 ramp

primary
#AFAC48
secondary
#9092C2
accent
#5AD256
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAC48

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

Preview Lab → · Contrast checker → · Palette generator →

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