#AFB161#AFB161

#AFB161 is a light, moderate yellow. Relative luminance 0.414; OKLCH L 74.1% C 0.103 H 109.9°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFB161
RGBrgb(175, 177, 97)
HSLhsl(62, 34%, 54%)
HSVhsv(62, 45%, 69%)
CMYKcmyk(1.1%, 0%, 45.2%, 30.6%)
CIE-LABlab(70.47, -12.44, 40.49)
CIE-LCHlch(70.47, 42.36, 107.07°)
OKLaboklab(74.11% -0.0352 0.0971)
OKLCHoklch(74.11% 0.103 109.9)
XYZxyz(35.5596, 41.4220, 17.4290)
Luminance0.4142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB161 #6361B1
analogous
#B18B61 #AFB161 #87B161
triadic
#AFB161 #61AFB1 #B161AF
tetradic
#AFB161 #61B18B #6361B1 #B16187
square
#AFB161 #61B18B #6361B1 #B16187
split-complementary
#AFB161 #6187B1 #8B61B1
monochromatic
#646532 #8D8E46 #AFB161 #C4C58A #D8D9B3

Accessibility & contrast

On white

2.26
#AFB161 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#AFB161 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB161
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB161#FFFFFF#000000##000000
##AFB1611.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCAB5A
Deuteranopia (green-blind)
#BDAE65
Tritanopia (blue-blind)
#B9A89E
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb161;
/* rgb */ color: rgb(175, 177, 97);
/* oklch */ color: oklch(74.1% 0.103 109.9);
Tailwind
colors: {
  custom: {
    50: '#c8c88f',
    500: '#afb161',
    950: '#000000',
  },
}
SCSS
$custom: #afb161;
$custom-light: #c8c88f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb161",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 97
  },
  "hsl": {
    "h": 61.5,
    "s": 33.898,
    "l": 53.725
  },
  "oklch": {
    "l": 0.7411,
    "c": 0.10328,
    "h": 109.9
  },
  "luminance": 0.41421
}

Semantic roles & 50–950 ramp

primary
#AFB161
secondary
#A7A6C8
accent
#5ECA61
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB161

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

Preview Lab → · Contrast checker → · Palette generator →

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