#AFA948#AFA948

#AFA948 is a light, moderate yellow. Relative luminance 0.380; OKLCH L 72.0% C 0.119 H 105.7°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AFA948
RGBrgb(175, 169, 72)
HSLhsl(57, 42%, 48%)
HSVhsv(57, 59%, 69%)
CMYKcmyk(0%, 3.4%, 58.9%, 31.4%)
CIE-LABlab(67.99, -10.47, 49.68)
CIE-LCHlch(67.99, 50.77, 101.90°)
OKLaboklab(72.04% -0.0322 0.1146)
OKLCHoklch(72.04% 0.119 105.7)
XYZxyz(33.0379, 37.9588, 11.7161)
Luminance0.3796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA948 #484EAF
analogous
#AF7548 #AFA948 #81AF48
triadic
#AFA948 #48AFA9 #A948AF
tetradic
#AFA948 #48AF75 #484EAF #AF4881
square
#AFA948 #48AF75 #484EAF #AF4881
split-complementary
#AFA948 #4881AF #7548AF
monochromatic
#585524 #847F36 #AFA948 #C4BF70 #D6D39B

Accessibility & contrast

On white

2.44
#AFA948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#AFA948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA948
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA948#FFFFFF#000000##000000
##AFA9481.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A33E
Deuteranopia (green-blind)
#B9A84D
Tritanopia (blue-blind)
#BB9F94
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa948;
/* rgb */ color: rgb(175, 169, 72);
/* oklch */ color: oklch(72.0% 0.119 105.7);
Tailwind
colors: {
  custom: {
    50: '#c9c27f',
    500: '#afa948',
    950: '#000000',
  },
}
SCSS
$custom: #afa948;
$custom-light: #c9c27f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa948",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 72
  },
  "hsl": {
    "h": 56.505,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72044,
    "c": 0.11903,
    "h": 105.7
  },
  "luminance": 0.37958
}

Semantic roles & 50–950 ramp

primary
#AFA948
secondary
#9093C2
accent
#5DD256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA948

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

Preview Lab → · Contrast checker → · Palette generator →

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