#AFB156#AFB156

#AFB156 is a light, moderate yellow. Relative luminance 0.412; OKLCH L 74.0% C 0.115 H 110.0°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFB156
RGBrgb(175, 177, 86)
HSLhsl(61, 37%, 52%)
HSVhsv(61, 51%, 69%)
CMYKcmyk(1.1%, 0%, 51.4%, 30.6%)
CIE-LABlab(70.34, -13.48, 45.76)
CIE-LCHlch(70.34, 47.71, 106.42°)
OKLaboklab(73.96% -0.0393 0.1077)
OKLCHoklch(73.96% 0.115 110)
XYZxyz(35.0818, 41.2309, 14.9126)
Luminance0.4123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB156 #5856B1
analogous
#B18656 #AFB156 #82B156
triadic
#AFB156 #56AFB1 #B156AF
tetradic
#AFB156 #56B186 #5856B1 #B15682
square
#AFB156 #56B186 #5856B1 #B15682
split-complementary
#AFB156 #5682B1 #8656B1
monochromatic
#5F602C #888A40 #AFB156 #C3C480 #D7D8AA

Accessibility & contrast

On white

2.27
#AFB156 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFB156 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB156
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB156#FFFFFF#000000##000000
##AFB1561.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAA4D
Deuteranopia (green-blind)
#BEAD5B
Tritanopia (blue-blind)
#B9A89C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb156;
/* rgb */ color: rgb(175, 177, 86);
/* oklch */ color: oklch(74.0% 0.115 110.0);
Tailwind
colors: {
  custom: {
    50: '#c9c888',
    500: '#afb156',
    950: '#000000',
  },
}
SCSS
$custom: #afb156;
$custom-light: #c9c888;
$custom-dark: #000000;
JSON
{
  "hex": "#afb156",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 86
  },
  "hsl": {
    "h": 61.319,
    "s": 36.842,
    "l": 51.569
  },
  "oklch": {
    "l": 0.73961,
    "c": 0.11467,
    "h": 110
  },
  "luminance": 0.4123
}

Semantic roles & 50–950 ramp

primary
#AFB156
secondary
#9E9DC5
accent
#5BCD5D
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB156

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

Preview Lab → · Contrast checker → · Palette generator →

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