#AFB159#AFB159

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

Color values

HEX#AFB159
RGBrgb(175, 177, 89)
HSLhsl(61, 36%, 52%)
HSVhsv(61, 50%, 69%)
CMYKcmyk(1.1%, 0%, 49.7%, 30.6%)
CIE-LABlab(70.37, -13.21, 44.35)
CIE-LCHlch(70.37, 46.27, 106.59°)
OKLaboklab(74% -0.0382 0.1049)
OKLCHoklch(74% 0.112 110)
XYZxyz(35.2053, 41.2803, 15.5626)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB159 #5B59B1
analogous
#B18759 #AFB159 #83B159
triadic
#AFB159 #59AFB1 #B159AF
tetradic
#AFB159 #59B187 #5B59B1 #B15983
square
#AFB159 #59B187 #5B59B1 #B15983
split-complementary
#AFB159 #5983B1 #8759B1
monochromatic
#61622E #8A8B41 #AFB159 #C3C583 #D7D8AC

Accessibility & contrast

On white

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

On black

9.26
#AFB159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB159
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB159#FFFFFF#000000##000000
##AFB1591.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAB51
Deuteranopia (green-blind)
#BEAD5D
Tritanopia (blue-blind)
#B9A89D
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb159;
/* rgb */ color: rgb(175, 177, 89);
/* oklch */ color: oklch(74.0% 0.112 110.0);
Tailwind
colors: {
  custom: {
    50: '#c9c88a',
    500: '#afb159',
    950: '#000000',
  },
}
SCSS
$custom: #afb159;
$custom-light: #c9c88a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb159",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 89
  },
  "hsl": {
    "h": 61.364,
    "s": 36.066,
    "l": 52.157
  },
  "oklch": {
    "l": 0.73999,
    "c": 0.11166,
    "h": 110
  },
  "luminance": 0.4128
}

Semantic roles & 50–950 ramp

primary
#AFB159
secondary
#A1A0C6
accent
#5CCC5E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB159

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

Preview Lab → · Contrast checker → · Palette generator →

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