#AFA048#AFA048

#AFA048 is a light, moderate yellow. Relative luminance 0.347; OKLCH L 70.1% C 0.110 H 99.7°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#AFA048
RGBrgb(175, 160, 72)
HSLhsl(51, 42%, 48%)
HSVhsv(51, 59%, 69%)
CMYKcmyk(0%, 8.6%, 58.9%, 31.4%)
CIE-LABlab(65.53, -5.71, 46.93)
CIE-LCHlch(65.53, 47.28, 96.94°)
OKLaboklab(70.09% -0.0186 0.1087)
OKLCHoklch(70.09% 0.11 99.7)
XYZxyz(31.4209, 34.7247, 11.1771)
Luminance0.3472 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA048 #4857AF
analogous
#AF6C48 #AFA048 #8AAF48
triadic
#AFA048 #48AFA0 #A048AF
tetradic
#AFA048 #48AF6C #4857AF #AF488A
square
#AFA048 #48AF6C #4857AF #AF488A
split-complementary
#AFA048 #488AAF #6C48AF
monochromatic
#585124 #847836 #AFA048 #C4B870 #D6CD9B

Accessibility & contrast

On white

2.64
#AFA048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#AFA048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA048
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA048#FFFFFF#000000##000000
##AFA0481.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C3F
Deuteranopia (green-blind)
#B2A24C
Tritanopia (blue-blind)
#BB968D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa048;
/* rgb */ color: rgb(175, 160, 72);
/* oklch */ color: oklch(70.1% 0.110 99.7);
Tailwind
colors: {
  custom: {
    50: '#c9bb7e',
    500: '#afa048',
    950: '#000000',
  },
}
SCSS
$custom: #afa048;
$custom-light: #c9bb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa048",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 72
  },
  "hsl": {
    "h": 51.262,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.70093,
    "c": 0.11028,
    "h": 99.7
  },
  "luminance": 0.34723
}

Semantic roles & 50–950 ramp

primary
#AFA048
secondary
#9098C2
accent
#68D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#13110A
muted
#82807C

Preview Lab

Preview with #AFA048

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

Preview Lab → · Contrast checker → · Palette generator →

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