#AFA940#AFA940

#AFA940 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.0% C 0.126 H 106.0°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA940
RGBrgb(175, 169, 64)
HSLhsl(57, 46%, 47%)
HSVhsv(57, 63%, 69%)
CMYKcmyk(0%, 3.4%, 63.4%, 31.4%)
CIE-LABlab(67.92, -11.03, 53.18)
CIE-LCHlch(67.92, 54.31, 101.72°)
OKLaboklab(71.96% -0.0347 0.1209)
OKLCHoklch(71.96% 0.126 106)
XYZxyz(32.7937, 37.8612, 10.4300)
Luminance0.3786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA940 #4046AF
analogous
#AF7240 #AFA940 #7EAF40
triadic
#AFA940 #40AFA9 #A940AF
tetradic
#AFA940 #40AF72 #4046AF #AF407E
square
#AFA940 #40AF72 #4046AF #AF407E
split-complementary
#AFA940 #407EAF #7240AF
monochromatic
#55521F #827E30 #AFA940 #C7C265 #D7D392

Accessibility & contrast

On white

2.45
#AFA940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#AFA940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA940
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA940#FFFFFF#000000##000000
##AFA9401.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A333
Deuteranopia (green-blind)
#B9A846
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa940;
/* rgb */ color: rgb(175, 169, 64);
/* oklch */ color: oklch(72.0% 0.126 106.0);
Tailwind
colors: {
  custom: {
    50: '#cac27a',
    500: '#afa940',
    950: '#000000',
  },
}
SCSS
$custom: #afa940;
$custom-light: #cac27a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa940",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 56.757,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71963,
    "c": 0.12577,
    "h": 106
  },
  "luminance": 0.3786
}

Semantic roles & 50–950 ramp

primary
#AFA940
secondary
#888BC3
accent
#59D652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA940

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

Preview Lab → · Contrast checker → · Palette generator →

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