#AFA351#AFA351

#AFA351 is a light, moderate yellow. Relative luminance 0.359; OKLCH L 70.8% C 0.105 H 101.1°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#AFA351
RGBrgb(175, 163, 81)
HSLhsl(52, 37%, 50%)
HSVhsv(52, 54%, 69%)
CMYKcmyk(0%, 6.9%, 53.7%, 31.4%)
CIE-LABlab(66.45, -6.59, 43.63)
CIE-LCHlch(66.45, 44.13, 98.59°)
OKLaboklab(70.85% -0.0201 0.1026)
OKLCHoklch(70.85% 0.105 101.1)
XYZxyz(32.2626, 35.9036, 13.0136)
Luminance0.3590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA351 #515DAF
analogous
#AF7451 #AFA351 #8CAF51
triadic
#AFA351 #51AFA3 #A351AF
tetradic
#AFA351 #51AF74 #515DAF #AF518C
square
#AFA351 #51AF74 #515DAF #AF518C
split-complementary
#AFA351 #518CAF #7451AF
monochromatic
#5C552A #857C3D #AFA351 #C2B97B #D6CFA5

Accessibility & contrast

On white

2.57
#AFA351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#AFA351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA351
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA351#FFFFFF#000000##000000
##AFA3511.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09F49
Deuteranopia (green-blind)
#B4A455
Tritanopia (blue-blind)
#BB9990
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa351;
/* rgb */ color: rgb(175, 163, 81);
/* oklch */ color: oklch(70.8% 0.105 101.1);
Tailwind
colors: {
  custom: {
    50: '#c9be84',
    500: '#afa351',
    950: '#000000',
  },
}
SCSS
$custom: #afa351;
$custom-light: #c9be84;
$custom-dark: #000000;
JSON
{
  "hex": "#afa351",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 81
  },
  "hsl": {
    "h": 52.34,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.70848,
    "c": 0.10455,
    "h": 101.1
  },
  "luminance": 0.35902
}

Semantic roles & 50–950 ramp

primary
#AFA351
secondary
#999EC3
accent
#69CD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA351

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

Preview Lab → · Contrast checker → · Palette generator →

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