#AFA277#AFA277

#AFA277 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.3% C 0.061 H 93.3°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#AFA277
RGBrgb(175, 162, 119)
HSLhsl(46, 26%, 58%)
HSVhsv(46, 32%, 69%)
CMYKcmyk(0%, 7.4%, 32%, 31.4%)
CIE-LABlab(66.74, -1.94, 24.12)
CIE-LCHlch(66.74, 24.20, 94.60°)
OKLaboklab(71.26% -0.0034 0.0605)
OKLCHoklch(71.26% 0.061 93.3)
XYZxyz(33.9297, 36.2875, 22.6660)
Luminance0.3629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA277 #7784AF
analogous
#AF8677 #AFA277 #A0AF77
triadic
#AFA277 #77AFA2 #A277AF
tetradic
#AFA277 #77AF86 #7784AF #AF77A0
square
#AFA277 #77AF86 #7784AF #AF77A0
split-complementary
#AFA277 #77A0AF #8677AF
monochromatic
#6C6240 #938556 #AFA277 #C6BC9E #DCD7C4

Accessibility & contrast

On white

2.54
#AFA277 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#AFA277 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA277
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA277#FFFFFF#000000##000000
##AFA2771.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#ABA074
Deuteranopia (green-blind)
#AFA478
Tritanopia (blue-blind)
#B89B97
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa277;
/* rgb */ color: rgb(175, 162, 119);
/* oklch */ color: oklch(71.3% 0.061 93.3);
Tailwind
colors: {
  custom: {
    50: '#c7bd9e',
    500: '#afa277',
    950: '#000000',
  },
}
SCSS
$custom: #afa277;
$custom-light: #c7bd9e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa277",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 119
  },
  "hsl": {
    "h": 46.071,
    "s": 25.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.71263,
    "c": 0.06057,
    "h": 93.3
  },
  "luminance": 0.36287
}

Semantic roles & 50–950 ramp

primary
#AFA277
secondary
#B6BBCC
accent
#7BC265
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA277

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

Preview Lab → · Contrast checker → · Palette generator →

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