#AFA278#AFA278

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

Color values

HEX#AFA278
RGBrgb(175, 162, 120)
HSLhsl(46, 26%, 58%)
HSVhsv(46, 31%, 69%)
CMYKcmyk(0%, 7.4%, 31.4%, 31.4%)
CIE-LABlab(66.76, -1.81, 23.60)
CIE-LCHlch(66.76, 23.67, 94.39°)
OKLaboklab(71.28% -0.003 0.0593)
OKLCHoklch(71.28% 0.059 92.9)
XYZxyz(33.9901, 36.3116, 22.9840)
Luminance0.3631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA278 #7885AF
analogous
#AF8678 #AFA278 #A0AF78
triadic
#AFA278 #78AFA2 #A278AF
tetradic
#AFA278 #78AF86 #7885AF #AF78A0
square
#AFA278 #78AF86 #7885AF #AF78A0
split-complementary
#AFA278 #78A0AF #8678AF
monochromatic
#6C6240 #938557 #AFA278 #C6BC9E #DDD7C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA278#FFFFFF#000000##000000
##AFA2781.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)
#ABA075
Deuteranopia (green-blind)
#AEA479
Tritanopia (blue-blind)
#B89C97
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa278;
/* rgb */ color: rgb(175, 162, 120);
/* oklch */ color: oklch(71.3% 0.059 92.9);
Tailwind
colors: {
  custom: {
    50: '#c7bd9f',
    500: '#afa278',
    950: '#000000',
  },
}
SCSS
$custom: #afa278;
$custom-light: #c7bd9f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa278",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 120
  },
  "hsl": {
    "h": 45.818,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.71283,
    "c": 0.05933,
    "h": 92.9
  },
  "luminance": 0.36311
}

Semantic roles & 50–950 ramp

primary
#AFA278
secondary
#B6BCCC
accent
#7CC266
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA278

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

Preview Lab → · Contrast checker → · Palette generator →

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