#AFA251#AFA251

#AFA251 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.104 H 100.3°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA251
RGBrgb(175, 162, 81)
HSLhsl(52, 37%, 50%)
HSVhsv(52, 54%, 69%)
CMYKcmyk(0%, 7.4%, 53.7%, 31.4%)
CIE-LABlab(66.17, -6.05, 43.31)
CIE-LCHlch(66.17, 43.73, 97.96°)
OKLaboklab(70.63% -0.0186 0.1019)
OKLCHoklch(70.63% 0.104 100.3)
XYZxyz(32.0858, 35.5499, 12.9547)
Luminance0.3555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA251 #515EAF
analogous
#AF7351 #AFA251 #8DAF51
triadic
#AFA251 #51AFA2 #A251AF
tetradic
#AFA251 #51AF73 #515EAF #AF518D
square
#AFA251 #51AF73 #515EAF #AF518D
split-complementary
#AFA251 #518DAF #7351AF
monochromatic
#5C552A #857B3D #AFA251 #C2B87B #D6CFA5

Accessibility & contrast

On white

2.59
#AFA251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#AFA251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA251
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA251#FFFFFF#000000##000000
##AFA2511.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E49
Deuteranopia (green-blind)
#B3A355
Tritanopia (blue-blind)
#BB9890
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa251;
/* rgb */ color: rgb(175, 162, 81);
/* oklch */ color: oklch(70.6% 0.104 100.3);
Tailwind
colors: {
  custom: {
    50: '#c9bd84',
    500: '#afa251',
    950: '#000000',
  },
}
SCSS
$custom: #afa251;
$custom-light: #c9bd84;
$custom-dark: #000000;
JSON
{
  "hex": "#afa251",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 81
  },
  "hsl": {
    "h": 51.702,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.70632,
    "c": 0.10359,
    "h": 100.3
  },
  "luminance": 0.35549
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA251

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

Preview Lab → · Contrast checker → · Palette generator →

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