#AFA548#AFA548

#AFA548 is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.2% C 0.115 H 103.2°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA548
RGBrgb(175, 165, 72)
HSLhsl(54, 42%, 48%)
HSVhsv(54, 59%, 69%)
CMYKcmyk(0%, 5.7%, 58.9%, 31.4%)
CIE-LABlab(66.90, -8.37, 48.46)
CIE-LCHlch(66.90, 49.18, 99.80°)
OKLaboklab(71.17% -0.0262 0.112)
OKLCHoklch(71.17% 0.115 103.2)
XYZxyz(32.3051, 36.4933, 11.4719)
Luminance0.3649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA548 #4852AF
analogous
#AF7148 #AFA548 #85AF48
triadic
#AFA548 #48AFA5 #A548AF
tetradic
#AFA548 #48AF71 #4852AF #AF4885
square
#AFA548 #48AF71 #4852AF #AF4885
split-complementary
#AFA548 #4885AF #7148AF
monochromatic
#585324 #847C36 #AFA548 #C4BC70 #D6D09B

Accessibility & contrast

On white

2.53
#AFA548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AFA548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA548
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA548#FFFFFF#000000##000000
##AFA5481.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A03E
Deuteranopia (green-blind)
#B6A54D
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa548;
/* rgb */ color: rgb(175, 165, 72);
/* oklch */ color: oklch(71.2% 0.115 103.2);
Tailwind
colors: {
  custom: {
    50: '#c9bf7e',
    500: '#afa548',
    950: '#000000',
  },
}
SCSS
$custom: #afa548;
$custom-light: #c9bf7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa548",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 72
  },
  "hsl": {
    "h": 54.175,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.71173,
    "c": 0.11501,
    "h": 103.2
  },
  "luminance": 0.36492
}

Semantic roles & 50–950 ramp

primary
#AFA548
secondary
#9095C2
accent
#62D256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA548

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

Preview Lab → · Contrast checker → · Palette generator →

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