#AFA270#AFA270

#AFA270 is a light, moderate yellow. Relative luminance 0.361; OKLCH L 71.1% C 0.069 H 95.3°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#AFA270
RGBrgb(175, 162, 112)
HSLhsl(48, 28%, 56%)
HSVhsv(48, 36%, 69%)
CMYKcmyk(0%, 7.4%, 36%, 31.4%)
CIE-LABlab(66.62, -2.83, 27.75)
CIE-LCHlch(66.62, 27.89, 95.82°)
OKLaboklab(71.13% -0.0064 0.0688)
OKLCHoklch(71.13% 0.069 95.3)
XYZxyz(33.5247, 36.1255, 20.5330)
Luminance0.3612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA270 #707DAF
analogous
#AF8370 #AFA270 #9DAF70
triadic
#AFA270 #70AFA2 #A270AF
tetradic
#AFA270 #70AF83 #707DAF #AF709D
square
#AFA270 #70AF83 #707DAF #AF709D
split-complementary
#AFA270 #709DAF #8370AF
monochromatic
#6A603B #918451 #AFA270 #C5BC97 #DBD5BE

Accessibility & contrast

On white

2.55
#AFA270 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#AFA270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA270
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA270#FFFFFF#000000##000000
##AFA2701.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#ACA06C
Deuteranopia (green-blind)
#B0A472
Tritanopia (blue-blind)
#B89B95
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa270;
/* rgb */ color: rgb(175, 162, 112);
/* oklch */ color: oklch(71.1% 0.069 95.3);
Tailwind
colors: {
  custom: {
    50: '#c8bd99',
    500: '#afa270',
    950: '#000000',
  },
}
SCSS
$custom: #afa270;
$custom-light: #c8bd99;
$custom-dark: #000000;
JSON
{
  "hex": "#afa270",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 112
  },
  "hsl": {
    "h": 47.619,
    "s": 28.251,
    "l": 56.275
  },
  "oklch": {
    "l": 0.71125,
    "c": 0.06913,
    "h": 95.3
  },
  "luminance": 0.36124
}

Semantic roles & 50–950 ramp

primary
#AFA270
secondary
#B0B6CA
accent
#77C563
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA270

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

Preview Lab → · Contrast checker → · Palette generator →

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