#AFA854#AFA854

#AFA854 is a light, moderate yellow. Relative luminance 0.378; OKLCH L 72.0% C 0.107 H 104.5°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA854
RGBrgb(175, 168, 84)
HSLhsl(55, 36%, 51%)
HSVhsv(55, 52%, 69%)
CMYKcmyk(0%, 4%, 52%, 31.4%)
CIE-LABlab(67.84, -8.97, 43.80)
CIE-LCHlch(67.84, 44.71, 101.57°)
OKLaboklab(71.97% -0.0266 0.1033)
OKLCHoklch(71.97% 0.107 104.5)
XYZxyz(33.2830, 37.7603, 13.9210)
Luminance0.3776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA854 #545BAF
analogous
#AF7A54 #AFA854 #88AF54
triadic
#AFA854 #54AFA8 #A854AF
tetradic
#AFA854 #54AF7A #545BAF #AF5488
square
#AFA854 #54AF7A #545BAF #AF5488
split-complementary
#AFA854 #5488AF #7A54AF
monochromatic
#5D592C #87813F #AFA854 #C3BD7E #D6D2A7

Accessibility & contrast

On white

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

On black

8.55
#AFA854 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA854
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA854#FFFFFF#000000##000000
##AFA8541.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A34C
Deuteranopia (green-blind)
#B7A758
Tritanopia (blue-blind)
#BA9E95
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa854;
/* rgb */ color: rgb(175, 168, 84);
/* oklch */ color: oklch(72.0% 0.107 104.5);
Tailwind
colors: {
  custom: {
    50: '#c9c186',
    500: '#afa854',
    950: '#000000',
  },
}
SCSS
$custom: #afa854;
$custom-light: #c9c186;
$custom-dark: #000000;
JSON
{
  "hex": "#afa854",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 84
  },
  "hsl": {
    "h": 55.385,
    "s": 36.255,
    "l": 50.784
  },
  "oklch": {
    "l": 0.71968,
    "c": 0.10665,
    "h": 104.5
  },
  "luminance": 0.37759
}

Semantic roles & 50–950 ramp

primary
#AFA854
secondary
#9B9EC4
accent
#64CC5C
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA854

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

Preview Lab → · Contrast checker → · Palette generator →

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