#AFB166#AFB166

#AFB166 is a light, moderate yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.098 H 109.9°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFB166
RGBrgb(175, 177, 102)
HSLhsl(62, 32%, 55%)
HSVhsv(62, 42%, 69%)
CMYKcmyk(1.1%, 0%, 42.4%, 30.6%)
CIE-LABlab(70.54, -11.91, 38.04)
CIE-LCHlch(70.54, 39.86, 107.39°)
OKLaboklab(74.19% -0.0333 0.0919)
OKLCHoklch(74.19% 0.098 109.9)
XYZxyz(35.8001, 41.5182, 18.6957)
Luminance0.4152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB166 #6866B1
analogous
#B18E66 #AFB166 #8AB166
triadic
#AFB166 #66AFB1 #B166AF
tetradic
#AFB166 #66B18E #6866B1 #B1668A
square
#AFB166 #66B18E #6866B1 #B1668A
split-complementary
#AFB166 #668AB1 #8E66B1
monochromatic
#666835 #8E904A #AFB166 #C4C68F #D9DAB7

Accessibility & contrast

On white

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

On black

9.30
#AFB166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB166
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB166#FFFFFF#000000##000000
##AFB1661.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCAB60
Deuteranopia (green-blind)
#BCAE69
Tritanopia (blue-blind)
#B8A99F
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb166;
/* rgb */ color: rgb(175, 177, 102);
/* oklch */ color: oklch(74.2% 0.098 109.9);
Tailwind
colors: {
  custom: {
    50: '#c8c893',
    500: '#afb166',
    950: '#000000',
  },
}
SCSS
$custom: #afb166;
$custom-light: #c8c893;
$custom-dark: #000000;
JSON
{
  "hex": "#afb166",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 102
  },
  "hsl": {
    "h": 61.6,
    "s": 32.468,
    "l": 54.706
  },
  "oklch": {
    "l": 0.74185,
    "c": 0.09777,
    "h": 109.9
  },
  "luminance": 0.41518
}

Semantic roles & 50–950 ramp

primary
#AFB166
secondary
#AAAAC9
accent
#5FC962
background
#FCFCF9
surface
#F8F8F1
border
#D1D1CB
text
#13130D
muted
#82827E

Preview Lab

Preview with #AFB166

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

Preview Lab → · Contrast checker → · Palette generator →

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