#AFA040#AFA040

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

Color values

HEX#AFA040
RGBrgb(175, 160, 64)
HSLhsl(52, 46%, 47%)
HSVhsv(52, 63%, 69%)
CMYKcmyk(0%, 8.6%, 63.4%, 31.4%)
CIE-LABlab(65.46, -6.28, 50.54)
CIE-LCHlch(65.46, 50.93, 97.09°)
OKLaboklab(70.01% -0.0212 0.1153)
OKLCHoklch(70.01% 0.117 100.4)
XYZxyz(31.1767, 34.6271, 9.8910)
Luminance0.3463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA040 #404FAF
analogous
#AF6940 #AFA040 #87AF40
triadic
#AFA040 #40AFA0 #A040AF
tetradic
#AFA040 #40AF69 #404FAF #AF4087
square
#AFA040 #40AF69 #404FAF #AF4087
split-complementary
#AFA040 #4087AF #6940AF
monochromatic
#554E1F #827730 #AFA040 #C7BA65 #D7CE92

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA040#FFFFFF#000000##000000
##AFA0401.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)
#AE9C35
Deuteranopia (green-blind)
#B3A245
Tritanopia (blue-blind)
#BC958C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa040;
/* rgb */ color: rgb(175, 160, 64);
/* oklch */ color: oklch(70.0% 0.117 100.4);
Tailwind
colors: {
  custom: {
    50: '#cabb79',
    500: '#afa040',
    950: '#000000',
  },
}
SCSS
$custom: #afa040;
$custom-light: #cabb79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa040",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 51.892,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70007,
    "c": 0.11723,
    "h": 100.4
  },
  "luminance": 0.34626
}

Semantic roles & 50–950 ramp

primary
#AFA040
secondary
#8890C3
accent
#64D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AFA040

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

Preview Lab → · Contrast checker → · Palette generator →

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