#AFA651#AFA651

#AFA651 is a light, moderate yellow. Relative luminance 0.370; OKLCH L 71.5% C 0.108 H 103.3°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA651
RGBrgb(175, 166, 81)
HSLhsl(54, 37%, 50%)
HSVhsv(54, 54%, 69%)
CMYKcmyk(0%, 5.1%, 53.7%, 31.4%)
CIE-LABlab(67.26, -8.18, 44.59)
CIE-LCHlch(67.26, 45.33, 100.39°)
OKLaboklab(71.5% -0.0247 0.1047)
OKLCHoklch(71.5% 0.108 103.3)
XYZxyz(32.8016, 36.9816, 13.1933)
Luminance0.3698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA651 #515AAF
analogous
#AF7751 #AFA651 #89AF51
triadic
#AFA651 #51AFA6 #A651AF
tetradic
#AFA651 #51AF77 #515AAF #AF5189
square
#AFA651 #51AF77 #515AAF #AF5189
split-complementary
#AFA651 #5189AF #7751AF
monochromatic
#5C572A #857F3D #AFA651 #C2BB7B #D6D1A5

Accessibility & contrast

On white

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

On black

8.40
#AFA651 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA651
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA651#FFFFFF#000000##000000
##AFA6511.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A149
Deuteranopia (green-blind)
#B6A655
Tritanopia (blue-blind)
#BB9C93
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa651;
/* rgb */ color: rgb(175, 166, 81);
/* oklch */ color: oklch(71.5% 0.108 103.3);
Tailwind
colors: {
  custom: {
    50: '#c9c084',
    500: '#afa651',
    950: '#000000',
  },
}
SCSS
$custom: #afa651;
$custom-light: #c9c084;
$custom-dark: #000000;
JSON
{
  "hex": "#afa651",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 81
  },
  "hsl": {
    "h": 54.255,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.71496,
    "c": 0.10755,
    "h": 103.3
  },
  "luminance": 0.3698
}

Semantic roles & 50–950 ramp

primary
#AFA651
secondary
#999DC3
accent
#66CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA651

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

Preview Lab → · Contrast checker → · Palette generator →

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