#AFA255#AFA255

#AFA255 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.100 H 99.9°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA255
RGBrgb(175, 162, 85)
HSLhsl(51, 36%, 51%)
HSVhsv(51, 51%, 69%)
CMYKcmyk(0%, 7.4%, 51.4%, 31.4%)
CIE-LABlab(66.22, -5.70, 41.38)
CIE-LCHlch(66.22, 41.77, 97.85°)
OKLaboklab(70.69% -0.0171 0.0981)
OKLCHoklch(70.69% 0.1 99.9)
XYZxyz(32.2402, 35.6117, 13.7680)
Luminance0.3561 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA255 #5562AF
analogous
#AF7555 #AFA255 #8FAF55
triadic
#AFA255 #55AFA2 #A255AF
tetradic
#AFA255 #55AF75 #5562AF #AF558F
square
#AFA255 #55AF75 #5562AF #AF558F
split-complementary
#AFA255 #558FAF #7555AF
monochromatic
#5E562C #877D40 #AFA255 #C3B97F #D6D0A8

Accessibility & contrast

On white

2.59
#AFA255 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA255
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA255#FFFFFF#000000##000000
##AFA2551.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9E4E
Deuteranopia (green-blind)
#B2A358
Tritanopia (blue-blind)
#BB9890
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa255;
/* rgb */ color: rgb(175, 162, 85);
/* oklch */ color: oklch(70.7% 0.100 99.9);
Tailwind
colors: {
  custom: {
    50: '#c9bd87',
    500: '#afa255',
    950: '#000000',
  },
}
SCSS
$custom: #afa255;
$custom-light: #c9bd87;
$custom-dark: #000000;
JSON
{
  "hex": "#afa255",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 85
  },
  "hsl": {
    "h": 51.333,
    "s": 36,
    "l": 50.98
  },
  "oklch": {
    "l": 0.70685,
    "c": 0.09954,
    "h": 99.9
  },
  "luminance": 0.3561
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA255

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

Preview Lab → · Contrast checker → · Palette generator →

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