#AFA54C#AFA54C

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

Color values

HEX#AFA54C
RGBrgb(175, 165, 76)
HSLhsl(54, 39%, 49%)
HSVhsv(54, 57%, 69%)
CMYKcmyk(0%, 5.7%, 56.6%, 31.4%)
CIE-LABlab(66.94, -8.06, 46.62)
CIE-LCHlch(66.94, 47.31, 99.81°)
OKLaboklab(71.22% -0.0249 0.1085)
OKLCHoklch(71.22% 0.111 102.9)
XYZxyz(32.4399, 36.5472, 12.1816)
Luminance0.3655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA54C #4C56AF
analogous
#AF744C #AFA54C #88AF4C
triadic
#AFA54C #4CAFA5 #A54CAF
tetradic
#AFA54C #4CAF74 #4C56AF #AF4C88
square
#AFA54C #4CAF74 #4C56AF #AF4C88
split-complementary
#AFA54C #4C88AF #744CAF
monochromatic
#5A5527 #847D39 #AFA54C #C3BB75 #D6D0A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA54C#FFFFFF#000000##000000
##AFA54C1.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)
#B2A043
Deuteranopia (green-blind)
#B5A550
Tritanopia (blue-blind)
#BB9B91
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa54c;
/* rgb */ color: rgb(175, 165, 76);
/* oklch */ color: oklch(71.2% 0.111 102.9);
Tailwind
colors: {
  custom: {
    50: '#c9bf81',
    500: '#afa54c',
    950: '#000000',
  },
}
SCSS
$custom: #afa54c;
$custom-light: #c9bf81;
$custom-dark: #000000;
JSON
{
  "hex": "#afa54c",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 76
  },
  "hsl": {
    "h": 53.939,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.71219,
    "c": 0.11134,
    "h": 102.9
  },
  "luminance": 0.36546
}

Semantic roles & 50–950 ramp

primary
#AFA54C
secondary
#9499C2
accent
#64CF58
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA54C

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

Preview Lab → · Contrast checker → · Palette generator →

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