#AFA046#AFA046

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

Color values

HEX#AFA046
RGBrgb(175, 160, 70)
HSLhsl(51, 43%, 48%)
HSVhsv(51, 60%, 69%)
CMYKcmyk(0%, 8.6%, 60%, 31.4%)
CIE-LABlab(65.51, -5.86, 47.85)
CIE-LCHlch(65.51, 48.21, 96.99°)
OKLaboklab(70.07% -0.0193 0.1104)
OKLCHoklch(70.07% 0.112 99.9)
XYZxyz(31.3567, 34.6991, 10.8391)
Luminance0.3470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA046 #4655AF
analogous
#AF6C46 #AFA046 #89AF46
triadic
#AFA046 #46AFA0 #A046AF
tetradic
#AFA046 #46AF6C #4655AF #AF4689
square
#AFA046 #46AF6C #4655AF #AF4689
split-complementary
#AFA046 #4689AF #6C46AF
monochromatic
#585023 #837835 #AFA046 #C5B86D #D6CE99

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA046#FFFFFF#000000##000000
##AFA0461.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)
#AE9C3C
Deuteranopia (green-blind)
#B2A24A
Tritanopia (blue-blind)
#BC958C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa046;
/* rgb */ color: rgb(175, 160, 70);
/* oklch */ color: oklch(70.1% 0.112 99.9);
Tailwind
colors: {
  custom: {
    50: '#c9bb7d',
    500: '#afa046',
    950: '#000000',
  },
}
SCSS
$custom: #afa046;
$custom-light: #c9bb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa046",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 70
  },
  "hsl": {
    "h": 51.429,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.7007,
    "c": 0.11208,
    "h": 99.9
  },
  "luminance": 0.34698
}

Semantic roles & 50–950 ramp

primary
#AFA046
secondary
#8E96C2
accent
#67D355
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#14110A
muted
#82807C

Preview Lab

Preview with #AFA046

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

Preview Lab → · Contrast checker → · Palette generator →

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