#AFA155#AFA155

#AFA155 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.099 H 99.1°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#AFA155
RGBrgb(175, 161, 85)
HSLhsl(51, 36%, 51%)
HSVhsv(51, 51%, 69%)
CMYKcmyk(0%, 8%, 51.4%, 31.4%)
CIE-LABlab(65.95, -5.17, 41.05)
CIE-LCHlch(65.95, 41.38, 97.17°)
OKLaboklab(70.47% -0.0156 0.0974)
OKLCHoklch(70.47% 0.099 99.1)
XYZxyz(32.0648, 35.2608, 13.7096)
Luminance0.3526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA155 #5563AF
analogous
#AF7455 #AFA155 #90AF55
triadic
#AFA155 #55AFA1 #A155AF
tetradic
#AFA155 #55AF74 #5563AF #AF5590
square
#AFA155 #55AF74 #5563AF #AF5590
split-complementary
#AFA155 #5590AF #7455AF
monochromatic
#5E562C #877C40 #AFA155 #C3B87F #D6CFA8

Accessibility & contrast

On white

2.61
#AFA155 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#AFA155 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA155
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA155#FFFFFF#000000##000000
##AFA1551.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D4E
Deuteranopia (green-blind)
#B2A358
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa155;
/* rgb */ color: rgb(175, 161, 85);
/* oklch */ color: oklch(70.5% 0.099 99.1);
Tailwind
colors: {
  custom: {
    50: '#c9bc87',
    500: '#afa155',
    950: '#000000',
  },
}
SCSS
$custom: #afa155;
$custom-light: #c9bc87;
$custom-dark: #000000;
JSON
{
  "hex": "#afa155",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 85
  },
  "hsl": {
    "h": 50.667,
    "s": 36,
    "l": 50.98
  },
  "oklch": {
    "l": 0.70471,
    "c": 0.09859,
    "h": 99.1
  },
  "luminance": 0.3526
}

Semantic roles & 50–950 ramp

primary
#AFA155
secondary
#9CA2C4
accent
#6DCC5C
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA155

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

Preview Lab → · Contrast checker → · Palette generator →

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