#AFA641#AFA641

#AFA641 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.3% C 0.122 H 104.2°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#AFA641
RGBrgb(175, 166, 65)
HSLhsl(55, 46%, 47%)
HSVhsv(55, 63%, 69%)
CMYKcmyk(0%, 5.1%, 62.9%, 31.4%)
CIE-LABlab(67.10, -9.39, 51.87)
CIE-LCHlch(67.10, 52.71, 100.26°)
OKLaboklab(71.32% -0.03 0.1183)
OKLCHoklch(71.32% 0.122 104.2)
XYZxyz(32.2707, 36.7692, 10.3973)
Luminance0.3677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA641 #414AAF
analogous
#AF6F41 #AFA641 #81AF41
triadic
#AFA641 #41AFA6 #A641AF
tetradic
#AFA641 #41AF6F #414AAF #AF4181
square
#AFA641 #41AF6F #414AAF #AF4181
split-complementary
#AFA641 #4181AF #6F41AF
monochromatic
#565120 #827C30 #AFA641 #C6BF67 #D7D193

Accessibility & contrast

On white

2.51
#AFA641 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#AFA641 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA641
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA641#FFFFFF#000000##000000
##AFA6411.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa641;
/* rgb */ color: rgb(175, 166, 65);
/* oklch */ color: oklch(71.3% 0.122 104.2);
Tailwind
colors: {
  custom: {
    50: '#cac07a',
    500: '#afa641',
    950: '#000000',
  },
}
SCSS
$custom: #afa641;
$custom-light: #cac07a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa641",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 65
  },
  "hsl": {
    "h": 55.091,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71318,
    "c": 0.122,
    "h": 104.2
  },
  "luminance": 0.36768
}

Semantic roles & 50–950 ramp

primary
#AFA641
secondary
#898EC2
accent
#5DD552
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA641

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

Preview Lab → · Contrast checker → · Palette generator →

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