#AFA279#AFA279

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

Color values

HEX#AFA279
RGBrgb(175, 162, 121)
HSLhsl(46, 25%, 58%)
HSVhsv(46, 31%, 69%)
CMYKcmyk(0%, 7.4%, 30.9%, 31.4%)
CIE-LABlab(66.78, -1.68, 23.08)
CIE-LCHlch(66.78, 23.14, 94.16°)
OKLaboklab(71.3% -0.0026 0.058)
OKLCHoklch(71.3% 0.058 92.6)
XYZxyz(34.0511, 36.3360, 23.3053)
Luminance0.3634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA279 #7986AF
analogous
#AF8779 #AFA279 #A1AF79
triadic
#AFA279 #79AFA2 #A279AF
tetradic
#AFA279 #79AF87 #7986AF #AF79A1
square
#AFA279 #79AF87 #7986AF #AF79A1
split-complementary
#AFA279 #79A1AF #8779AF
monochromatic
#6D6241 #938558 #AFA279 #C6BD9F #DDD7C6

Accessibility & contrast

On white

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

On black

8.27
#AFA279 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA279
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA279#FFFFFF#000000##000000
##AFA2791.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#ABA076
Deuteranopia (green-blind)
#AEA47A
Tritanopia (blue-blind)
#B79C97
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa279;
/* rgb */ color: rgb(175, 162, 121);
/* oklch */ color: oklch(71.3% 0.058 92.6);
Tailwind
colors: {
  custom: {
    50: '#c7bda0',
    500: '#afa279',
    950: '#000000',
  },
}
SCSS
$custom: #afa279;
$custom-light: #c7bda0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa279",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 121
  },
  "hsl": {
    "h": 45.556,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.71304,
    "c": 0.05809,
    "h": 92.6
  },
  "luminance": 0.36335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA279

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

Preview Lab → · Contrast checker → · Palette generator →

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