#AFA261#AFA261

#AFA261 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.087 H 98.3°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA261
RGBrgb(175, 162, 97)
HSLhsl(50, 33%, 53%)
HSVhsv(50, 45%, 69%)
CMYKcmyk(0%, 7.4%, 44.6%, 31.4%)
CIE-LABlab(66.38, -4.53, 35.42)
CIE-LCHlch(66.38, 35.71, 97.29°)
OKLaboklab(70.86% -0.0125 0.0857)
OKLCHoklch(70.86% 0.087 98.3)
XYZxyz(32.7580, 35.8188, 16.4951)
Luminance0.3582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA261 #616EAF
analogous
#AF7B61 #AFA261 #95AF61
triadic
#AFA261 #61AFA2 #A261AF
tetradic
#AFA261 #61AF7B #616EAF #AF6195
square
#AFA261 #61AF7B #616EAF #AF6195
split-complementary
#AFA261 #6195AF #7B61AF
monochromatic
#635B32 #8C8047 #AFA261 #C4BA8A #D8D2B2

Accessibility & contrast

On white

2.57
#AFA261 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA261 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA261
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA261#FFFFFF#000000##000000
##AFA2611.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9F5C
Deuteranopia (green-blind)
#B1A364
Tritanopia (blue-blind)
#BA9992
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa261;
/* rgb */ color: rgb(175, 162, 97);
/* oklch */ color: oklch(70.9% 0.087 98.3);
Tailwind
colors: {
  custom: {
    50: '#c8bd8f',
    500: '#afa261',
    950: '#000000',
  },
}
SCSS
$custom: #afa261;
$custom-light: #c8bd8f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa261",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 97
  },
  "hsl": {
    "h": 50,
    "s": 32.773,
    "l": 53.333
  },
  "oklch": {
    "l": 0.70863,
    "c": 0.08664,
    "h": 98.3
  },
  "luminance": 0.35818
}

Semantic roles & 50–950 ramp

primary
#AFA261
secondary
#A5ABC7
accent
#71C95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA261

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

Preview Lab → · Contrast checker → · Palette generator →

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