#AFA850#AFA850

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

Color values

HEX#AFA850
RGBrgb(175, 168, 80)
HSLhsl(56, 37%, 50%)
HSVhsv(56, 54%, 69%)
CMYKcmyk(0%, 4%, 54.3%, 31.4%)
CIE-LABlab(67.80, -9.32, 45.70)
CIE-LCHlch(67.80, 46.64, 101.52°)
OKLaboklab(71.92% -0.028 0.107)
OKLCHoklch(71.92% 0.111 104.7)
XYZxyz(33.1308, 37.6995, 13.1194)
Luminance0.3770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA850 #5057AF
analogous
#AF7950 #AFA850 #86AF50
triadic
#AFA850 #50AFA8 #A850AF
tetradic
#AFA850 #50AF79 #5057AF #AF5086
square
#AFA850 #50AF79 #5057AF #AF5086
split-complementary
#AFA850 #5086AF #7950AF
monochromatic
#5B572A #85803D #AFA850 #C2BD7A #D5D2A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA850#FFFFFF#000000##000000
##AFA8501.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)
#B5A347
Deuteranopia (green-blind)
#B7A754
Tritanopia (blue-blind)
#BA9E94
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa850;
/* rgb */ color: rgb(175, 168, 80);
/* oklch */ color: oklch(71.9% 0.111 104.7);
Tailwind
colors: {
  custom: {
    50: '#c9c184',
    500: '#afa850',
    950: '#000000',
  },
}
SCSS
$custom: #afa850;
$custom-light: #c9c184;
$custom-dark: #000000;
JSON
{
  "hex": "#afa850",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 80
  },
  "hsl": {
    "h": 55.579,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.71918,
    "c": 0.11058,
    "h": 104.7
  },
  "luminance": 0.37698
}

Semantic roles & 50–950 ramp

primary
#AFA850
secondary
#989BC3
accent
#63CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA850

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

Preview Lab → · Contrast checker → · Palette generator →

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