#AFA274#AFA274

#AFA274 is a light, moderate yellow. Relative luminance 0.362; OKLCH L 71.2% C 0.064 H 94.2°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA274
RGBrgb(175, 162, 116)
HSLhsl(47, 27%, 57%)
HSVhsv(47, 34%, 69%)
CMYKcmyk(0%, 7.4%, 33.7%, 31.4%)
CIE-LABlab(66.69, -2.33, 25.68)
CIE-LCHlch(66.69, 25.78, 95.18°)
OKLaboklab(71.2% -0.0047 0.0641)
OKLCHoklch(71.2% 0.064 94.2)
XYZxyz(33.7524, 36.2165, 21.7321)
Luminance0.3622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA274 #7481AF
analogous
#AF8574 #AFA274 #9FAF74
triadic
#AFA274 #74AFA2 #A274AF
tetradic
#AFA274 #74AF85 #7481AF #AF749F
square
#AFA274 #74AF85 #7481AF #AF749F
split-complementary
#AFA274 #749FAF #8574AF
monochromatic
#6B613E #928454 #AFA274 #C5BC9B #DCD6C2

Accessibility & contrast

On white

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

On black

8.24
#AFA274 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA274
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA274#FFFFFF#000000##000000
##AFA2741.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa274;
/* rgb */ color: rgb(175, 162, 116);
/* oklch */ color: oklch(71.2% 0.064 94.2);
Tailwind
colors: {
  custom: {
    50: '#c7bd9c',
    500: '#afa274',
    950: '#000000',
  },
}
SCSS
$custom: #afa274;
$custom-light: #c7bd9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa274",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 116
  },
  "hsl": {
    "h": 46.78,
    "s": 26.941,
    "l": 57.059
  },
  "oklch": {
    "l": 0.71202,
    "c": 0.06426,
    "h": 94.2
  },
  "luminance": 0.36216
}

Semantic roles & 50–950 ramp

primary
#AFA274
secondary
#B3B9CB
accent
#79C365
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA274

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

Preview Lab → · Contrast checker → · Palette generator →

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