#AFA276#AFA276

#AFA276 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.2% C 0.062 H 93.6°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA276
RGBrgb(175, 162, 118)
HSLhsl(46, 26%, 57%)
HSVhsv(46, 33%, 69%)
CMYKcmyk(0%, 7.4%, 32.6%, 31.4%)
CIE-LABlab(66.72, -2.07, 24.64)
CIE-LCHlch(66.72, 24.73, 94.81°)
OKLaboklab(71.24% -0.0039 0.0617)
OKLCHoklch(71.24% 0.062 93.6)
XYZxyz(33.8700, 36.2636, 22.3514)
Luminance0.3626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA276 #7683AF
analogous
#AF8676 #AFA276 #9FAF76
triadic
#AFA276 #76AFA2 #A276AF
tetradic
#AFA276 #76AF86 #7683AF #AF769F
square
#AFA276 #76AF86 #7683AF #AF769F
split-complementary
#AFA276 #769FAF #8676AF
monochromatic
#6C613F #928455 #AFA276 #C6BC9D #DCD6C3

Accessibility & contrast

On white

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

On black

8.25
#AFA276 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA276
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA276#FFFFFF#000000##000000
##AFA2761.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ABA073
Deuteranopia (green-blind)
#AFA477
Tritanopia (blue-blind)
#B89B96
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa276;
/* rgb */ color: rgb(175, 162, 118);
/* oklch */ color: oklch(71.2% 0.062 93.6);
Tailwind
colors: {
  custom: {
    50: '#c7bd9e',
    500: '#afa276',
    950: '#000000',
  },
}
SCSS
$custom: #afa276;
$custom-light: #c7bd9e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa276",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 118
  },
  "hsl": {
    "h": 46.316,
    "s": 26.267,
    "l": 57.451
  },
  "oklch": {
    "l": 0.71242,
    "c": 0.0618,
    "h": 93.6
  },
  "luminance": 0.36263
}

Semantic roles & 50–950 ramp

primary
#AFA276
secondary
#B5BACC
accent
#7AC365
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA276

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

Preview Lab → · Contrast checker → · Palette generator →

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