#AFA851#AFA851

#AFA851 is a light, moderate yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.110 H 104.6°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA851
RGBrgb(175, 168, 81)
HSLhsl(56, 37%, 50%)
HSVhsv(56, 54%, 69%)
CMYKcmyk(0%, 4%, 53.7%, 31.4%)
CIE-LABlab(67.81, -9.23, 45.23)
CIE-LCHlch(67.81, 46.16, 101.54°)
OKLaboklab(71.93% -0.0277 0.1061)
OKLCHoklch(71.93% 0.11 104.6)
XYZxyz(33.1680, 37.7144, 13.3154)
Luminance0.3771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA851 #5158AF
analogous
#AF7951 #AFA851 #87AF51
triadic
#AFA851 #51AFA8 #A851AF
tetradic
#AFA851 #51AF79 #5158AF #AF5187
square
#AFA851 #51AF79 #5158AF #AF5187
split-complementary
#AFA851 #5187AF #7951AF
monochromatic
#5C582A #85803D #AFA851 #C2BD7B #D6D2A5

Accessibility & contrast

On white

2.46
#AFA851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AFA851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA851
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA851#FFFFFF#000000##000000
##AFA8511.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A349
Deuteranopia (green-blind)
#B7A755
Tritanopia (blue-blind)
#BA9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa851;
/* rgb */ color: rgb(175, 168, 81);
/* oklch */ color: oklch(71.9% 0.110 104.6);
Tailwind
colors: {
  custom: {
    50: '#c9c184',
    500: '#afa851',
    950: '#000000',
  },
}
SCSS
$custom: #afa851;
$custom-light: #c9c184;
$custom-dark: #000000;
JSON
{
  "hex": "#afa851",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 81
  },
  "hsl": {
    "h": 55.532,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.7193,
    "c": 0.10962,
    "h": 104.6
  },
  "luminance": 0.37713
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA851

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

Preview Lab → · Contrast checker → · Palette generator →

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