#AFA54E#AFA54E

#AFA54E is a light, moderate yellow. Relative luminance 0.366; OKLCH L 71.2% C 0.109 H 102.8°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA54E
RGBrgb(175, 165, 78)
HSLhsl(54, 38%, 50%)
HSVhsv(54, 55%, 69%)
CMYKcmyk(0%, 5.7%, 55.4%, 31.4%)
CIE-LABlab(66.96, -7.90, 45.69)
CIE-LCHlch(66.96, 46.37, 99.81°)
OKLaboklab(71.24% -0.0242 0.1067)
OKLCHoklch(71.24% 0.109 102.8)
XYZxyz(32.5105, 36.5754, 12.5535)
Luminance0.3657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA54E #4E58AF
analogous
#AF744E #AFA54E #89AF4E
triadic
#AFA54E #4EAFA5 #A54EAF
tetradic
#AFA54E #4EAF74 #4E58AF #AF4E89
square
#AFA54E #4EAF74 #4E58AF #AF4E89
split-complementary
#AFA54E #4E89AF #744EAF
monochromatic
#5A5528 #857D3B #AFA54E #C3BB78 #D6D0A2

Accessibility & contrast

On white

2.53
#AFA54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#AFA54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA54E
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA54E#FFFFFF#000000##000000
##AFA54E1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A046
Deuteranopia (green-blind)
#B5A552
Tritanopia (blue-blind)
#BB9B92
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa54e;
/* rgb */ color: rgb(175, 165, 78);
/* oklch */ color: oklch(71.2% 0.109 102.8);
Tailwind
colors: {
  custom: {
    50: '#c9bf82',
    500: '#afa54e',
    950: '#000000',
  },
}
SCSS
$custom: #afa54e;
$custom-light: #c9bf82;
$custom-dark: #000000;
JSON
{
  "hex": "#afa54e",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 78
  },
  "hsl": {
    "h": 53.814,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.71242,
    "c": 0.10944,
    "h": 102.8
  },
  "luminance": 0.36574
}

Semantic roles & 50–950 ramp

primary
#AFA54E
secondary
#969BC3
accent
#66CE5A
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA54E

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

Preview Lab → · Contrast checker → · Palette generator →

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