#AFA041#AFA041

#AFA041 is a light, moderate yellow. Relative luminance 0.346; OKLCH L 70.0% C 0.116 H 100.4°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#AFA041
RGBrgb(175, 160, 65)
HSLhsl(52, 46%, 47%)
HSVhsv(52, 63%, 69%)
CMYKcmyk(0%, 8.6%, 62.9%, 31.4%)
CIE-LABlab(65.47, -6.22, 50.10)
CIE-LCHlch(65.47, 50.48, 97.07°)
OKLaboklab(70.02% -0.0209 0.1145)
OKLCHoklch(70.02% 0.116 100.4)
XYZxyz(31.2054, 34.6385, 10.0422)
Luminance0.3464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA041 #4150AF
analogous
#AF6941 #AFA041 #87AF41
triadic
#AFA041 #41AFA0 #A041AF
tetradic
#AFA041 #41AF69 #4150AF #AF4187
square
#AFA041 #41AF69 #4150AF #AF4187
split-complementary
#AFA041 #4187AF #6941AF
monochromatic
#564E20 #827730 #AFA041 #C6B967 #D7CE93

Accessibility & contrast

On white

2.65
#AFA041 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#AFA041 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA041
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA041#FFFFFF#000000##000000
##AFA0411.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C36
Deuteranopia (green-blind)
#B2A246
Tritanopia (blue-blind)
#BC958C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa041;
/* rgb */ color: rgb(175, 160, 65);
/* oklch */ color: oklch(70.0% 0.116 100.4);
Tailwind
colors: {
  custom: {
    50: '#cabb7a',
    500: '#afa041',
    950: '#000000',
  },
}
SCSS
$custom: #afa041;
$custom-light: #cabb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa041",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 65
  },
  "hsl": {
    "h": 51.818,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.70017,
    "c": 0.1164,
    "h": 100.4
  },
  "luminance": 0.34637
}

Semantic roles & 50–950 ramp

primary
#AFA041
secondary
#8991C2
accent
#64D552
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA041

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

Preview Lab → · Contrast checker → · Palette generator →

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