#AFA751#AFA751

#AFA751 is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.109 H 104.0°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA751
RGBrgb(175, 167, 81)
HSLhsl(55, 37%, 50%)
HSVhsv(55, 54%, 69%)
CMYKcmyk(0%, 4.6%, 53.7%, 31.4%)
CIE-LABlab(67.54, -8.70, 44.91)
CIE-LCHlch(67.54, 45.74, 100.97°)
OKLaboklab(71.71% -0.0262 0.1054)
OKLCHoklch(71.71% 0.109 104)
XYZxyz(32.9841, 37.3465, 13.2541)
Luminance0.3735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA751 #5159AF
analogous
#AF7851 #AFA751 #88AF51
triadic
#AFA751 #51AFA7 #A751AF
tetradic
#AFA751 #51AF78 #5159AF #AF5188
square
#AFA751 #51AF78 #5159AF #AF5188
split-complementary
#AFA751 #5188AF #7851AF
monochromatic
#5C572A #857F3D #AFA751 #C2BC7B #D6D1A5

Accessibility & contrast

On white

2.48
#AFA751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#AFA751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA751
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA751#FFFFFF#000000##000000
##AFA7511.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A249
Deuteranopia (green-blind)
#B7A655
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa751;
/* rgb */ color: rgb(175, 167, 81);
/* oklch */ color: oklch(71.7% 0.109 104.0);
Tailwind
colors: {
  custom: {
    50: '#c9c084',
    500: '#afa751',
    950: '#000000',
  },
}
SCSS
$custom: #afa751;
$custom-light: #c9c084;
$custom-dark: #000000;
JSON
{
  "hex": "#afa751",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 81
  },
  "hsl": {
    "h": 54.894,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.71713,
    "c": 0.10858,
    "h": 104
  },
  "luminance": 0.37345
}

Semantic roles & 50–950 ramp

primary
#AFA751
secondary
#999CC3
accent
#65CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA751

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

Preview Lab → · Contrast checker → · Palette generator →

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