#AFA151#AFA151

#AFA151 is a light, moderate yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.103 H 99.6°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#AFA151
RGBrgb(175, 161, 81)
HSLhsl(51, 37%, 50%)
HSVhsv(51, 54%, 69%)
CMYKcmyk(0%, 8%, 53.7%, 31.4%)
CIE-LABlab(65.90, -5.52, 42.99)
CIE-LCHlch(65.90, 43.35, 97.32°)
OKLaboklab(70.42% -0.017 0.1012)
OKLCHoklch(70.42% 0.103 99.6)
XYZxyz(31.9103, 35.1990, 12.8962)
Luminance0.3520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA151 #515FAF
analogous
#AF7251 #AFA151 #8EAF51
triadic
#AFA151 #51AFA1 #A151AF
tetradic
#AFA151 #51AF72 #515FAF #AF518E
square
#AFA151 #51AF72 #515FAF #AF518E
split-complementary
#AFA151 #518EAF #7251AF
monochromatic
#5C542A #857B3D #AFA151 #C2B87B #D6CEA5

Accessibility & contrast

On white

2.61
#AFA151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#AFA151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA151
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA151#FFFFFF#000000##000000
##AFA1511.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D4A
Deuteranopia (green-blind)
#B2A255
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa151;
/* rgb */ color: rgb(175, 161, 81);
/* oklch */ color: oklch(70.4% 0.103 99.6);
Tailwind
colors: {
  custom: {
    50: '#c9bc84',
    500: '#afa151',
    950: '#000000',
  },
}
SCSS
$custom: #afa151;
$custom-light: #c9bc84;
$custom-dark: #000000;
JSON
{
  "hex": "#afa151",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 81
  },
  "hsl": {
    "h": 51.064,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.70417,
    "c": 0.10263,
    "h": 99.6
  },
  "luminance": 0.35198
}

Semantic roles & 50–950 ramp

primary
#AFA151
secondary
#999FC3
accent
#6CCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA151

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

Preview Lab → · Contrast checker → · Palette generator →

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