#AFA456#AFA456

#AFA456 is a light, moderate yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.100 H 101.4°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#AFA456
RGBrgb(175, 164, 86)
HSLhsl(53, 36%, 51%)
HSVhsv(53, 51%, 69%)
CMYKcmyk(0%, 6.3%, 50.9%, 31.4%)
CIE-LABlab(66.78, -6.68, 41.54)
CIE-LCHlch(66.78, 42.07, 99.13°)
OKLaboklab(71.13% -0.0198 0.0985)
OKLCHoklch(71.13% 0.1 101.4)
XYZxyz(32.6353, 36.3379, 14.0971)
Luminance0.3634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA456 #5661AF
analogous
#AF7756 #AFA456 #8DAF56
triadic
#AFA456 #56AFA4 #A456AF
tetradic
#AFA456 #56AF77 #5661AF #AF568D
square
#AFA456 #56AF77 #5661AF #AF568D
split-complementary
#AFA456 #568DAF #7756AF
monochromatic
#5E582D #887F40 #AFA456 #C3BA80 #D6D1A9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA456#FFFFFF#000000##000000
##AFA4561.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)
#B1A04F
Deuteranopia (green-blind)
#B4A559
Tritanopia (blue-blind)
#BA9B92
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa456;
/* rgb */ color: rgb(175, 164, 86);
/* oklch */ color: oklch(71.1% 0.100 101.4);
Tailwind
colors: {
  custom: {
    50: '#c9be87',
    500: '#afa456',
    950: '#000000',
  },
}
SCSS
$custom: #afa456;
$custom-light: #c9be87;
$custom-dark: #000000;
JSON
{
  "hex": "#afa456",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 86
  },
  "hsl": {
    "h": 52.584,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.71129,
    "c": 0.10048,
    "h": 101.4
  },
  "luminance": 0.36337
}

Semantic roles & 50–950 ramp

primary
#AFA456
secondary
#9DA2C4
accent
#6ACC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA456

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

Preview Lab → · Contrast checker → · Palette generator →

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