#AFA864#AFA864

#AFA864 is a light, moderate yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.090 H 103.3°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#AFA864
RGBrgb(175, 168, 100)
HSLhsl(54, 32%, 54%)
HSVhsv(54, 43%, 69%)
CMYKcmyk(0%, 4%, 42.9%, 31.4%)
CIE-LABlab(68.05, -7.41, 35.95)
CIE-LCHlch(68.05, 36.71, 101.64°)
OKLaboklab(72.2% -0.0205 0.0871)
OKLCHoklch(72.2% 0.09 103.3)
XYZxyz(33.9828, 38.0403, 17.6065)
Luminance0.3804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA864 #646BAF
analogous
#AF8364 #AFA864 #91AF64
triadic
#AFA864 #64AFA8 #A864AF
tetradic
#AFA864 #64AF83 #646BAF #AF6491
square
#AFA864 #64AF83 #646BAF #AF6491
split-complementary
#AFA864 #6491AF #8364AF
monochromatic
#656034 #8D8749 #AFA864 #C4BF8C #D9D5B5

Accessibility & contrast

On white

2.44
#AFA864 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#AFA864 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA864
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA864#FFFFFF#000000##000000
##AFA8641.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A45F
Deuteranopia (green-blind)
#B6A867
Tritanopia (blue-blind)
#B9A097
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa864;
/* rgb */ color: rgb(175, 168, 100);
/* oklch */ color: oklch(72.2% 0.090 103.3);
Tailwind
colors: {
  custom: {
    50: '#c8c191',
    500: '#afa864',
    950: '#000000',
  },
}
SCSS
$custom: #afa864;
$custom-light: #c8c191;
$custom-dark: #000000;
JSON
{
  "hex": "#afa864",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 100
  },
  "hsl": {
    "h": 54.4,
    "s": 31.915,
    "l": 53.922
  },
  "oklch": {
    "l": 0.72199,
    "c": 0.08951,
    "h": 103.3
  },
  "luminance": 0.38039
}

Semantic roles & 50–950 ramp

primary
#AFA864
secondary
#A7AAC7
accent
#69C860
background
#FCFBF9
surface
#F8F7F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA864

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

Preview Lab → · Contrast checker → · Palette generator →

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