#AFA84E#AFA84E

#AFA84E is a light, moderate yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.113 H 104.8°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AFA84E
RGBrgb(175, 168, 78)
HSLhsl(56, 38%, 50%)
HSVhsv(56, 55%, 69%)
CMYKcmyk(0%, 4%, 55.4%, 31.4%)
CIE-LABlab(67.78, -9.48, 46.63)
CIE-LCHlch(67.78, 47.59, 101.49°)
OKLaboklab(71.89% -0.0287 0.1088)
OKLCHoklch(71.89% 0.113 104.8)
XYZxyz(33.0580, 37.6703, 12.7360)
Luminance0.3767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA84E #4E55AF
analogous
#AF784E #AFA84E #86AF4E
triadic
#AFA84E #4EAFA8 #A84EAF
tetradic
#AFA84E #4EAF78 #4E55AF #AF4E86
square
#AFA84E #4EAF78 #4E55AF #AF4E86
split-complementary
#AFA84E #4E86AF #784EAF
monochromatic
#5A5728 #857F3B #AFA84E #C3BD78 #D6D2A2

Accessibility & contrast

On white

2.46
#AFA84E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#AFA84E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA84E
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA84E#FFFFFF#000000##000000
##AFA84E1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A345
Deuteranopia (green-blind)
#B8A753
Tritanopia (blue-blind)
#BB9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa84e;
/* rgb */ color: rgb(175, 168, 78);
/* oklch */ color: oklch(71.9% 0.113 104.8);
Tailwind
colors: {
  custom: {
    50: '#c9c182',
    500: '#afa84e',
    950: '#000000',
  },
}
SCSS
$custom: #afa84e;
$custom-light: #c9c182;
$custom-dark: #000000;
JSON
{
  "hex": "#afa84e",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 78
  },
  "hsl": {
    "h": 55.67,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.71894,
    "c": 0.1125,
    "h": 104.8
  },
  "luminance": 0.37669
}

Semantic roles & 50–950 ramp

primary
#AFA84E
secondary
#9699C3
accent
#62CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA84E

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

Preview Lab → · Contrast checker → · Palette generator →

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