#AFA640#AFA640

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

Color values

HEX#AFA640
RGBrgb(175, 166, 64)
HSLhsl(55, 46%, 47%)
HSVhsv(55, 63%, 69%)
CMYKcmyk(0%, 5.1%, 63.4%, 31.4%)
CIE-LABlab(67.09, -9.46, 52.30)
CIE-LCHlch(67.09, 53.15, 100.25°)
OKLaboklab(71.31% -0.0303 0.119)
OKLCHoklch(71.31% 0.123 104.3)
XYZxyz(32.2420, 36.7577, 10.2461)
Luminance0.3676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA640 #4049AF
analogous
#AF6F40 #AFA640 #81AF40
triadic
#AFA640 #40AFA6 #A640AF
tetradic
#AFA640 #40AF6F #4049AF #AF4081
square
#AFA640 #40AF6F #4049AF #AF4081
split-complementary
#AFA640 #4081AF #6F40AF
monochromatic
#55511F #827B30 #AFA640 #C7BF65 #D7D292

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA640#FFFFFF#000000##000000
##AFA6401.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)
#B4A134
Deuteranopia (green-blind)
#B7A646
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa640;
/* rgb */ color: rgb(175, 166, 64);
/* oklch */ color: oklch(71.3% 0.123 104.3);
Tailwind
colors: {
  custom: {
    50: '#cac07a',
    500: '#afa640',
    950: '#000000',
  },
}
SCSS
$custom: #afa640;
$custom-light: #cac07a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa640",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 64
  },
  "hsl": {
    "h": 55.135,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71308,
    "c": 0.12281,
    "h": 104.3
  },
  "luminance": 0.36757
}

Semantic roles & 50–950 ramp

primary
#AFA640
secondary
#888DC3
accent
#5CD652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA640

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

Preview Lab → · Contrast checker → · Palette generator →

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