#AFA64E#AFA64E

#AFA64E is a light, moderate yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.110 H 103.5°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA64E
RGBrgb(175, 166, 78)
HSLhsl(54, 38%, 50%)
HSVhsv(54, 55%, 69%)
CMYKcmyk(0%, 5.1%, 55.4%, 31.4%)
CIE-LABlab(67.23, -8.43, 46.00)
CIE-LCHlch(67.23, 46.77, 100.38°)
OKLaboklab(71.46% -0.0257 0.1074)
OKLCHoklch(71.46% 0.11 103.5)
XYZxyz(32.6916, 36.9376, 12.6139)
Luminance0.3694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA64E #4E57AF
analogous
#AF764E #AFA64E #88AF4E
triadic
#AFA64E #4EAFA6 #A64EAF
tetradic
#AFA64E #4EAF76 #4E57AF #AF4E88
square
#AFA64E #4EAF76 #4E57AF #AF4E88
split-complementary
#AFA64E #4E88AF #764EAF
monochromatic
#5A5628 #857E3B #AFA64E #C3BC78 #D6D1A2

Accessibility & contrast

On white

2.50
#AFA64E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#AFA64E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA64E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA64E#FFFFFF#000000##000000
##AFA64E1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A145
Deuteranopia (green-blind)
#B6A652
Tritanopia (blue-blind)
#BB9C92
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa64e;
/* rgb */ color: rgb(175, 166, 78);
/* oklch */ color: oklch(71.5% 0.110 103.5);
Tailwind
colors: {
  custom: {
    50: '#c9c082',
    500: '#afa64e',
    950: '#000000',
  },
}
SCSS
$custom: #afa64e;
$custom-light: #c9c082;
$custom-dark: #000000;
JSON
{
  "hex": "#afa64e",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 78
  },
  "hsl": {
    "h": 54.433,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.71459,
    "c": 0.11045,
    "h": 103.5
  },
  "luminance": 0.36936
}

Semantic roles & 50–950 ramp

primary
#AFA64E
secondary
#969AC3
accent
#64CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA64E

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

Preview Lab → · Contrast checker → · Palette generator →

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