#AFA168#AFA168

#AFA168 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.8% C 0.078 H 96.0°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA168
RGBrgb(175, 161, 104)
HSLhsl(48, 31%, 55%)
HSVhsv(48, 41%, 69%)
CMYKcmyk(0%, 8%, 40.6%, 31.4%)
CIE-LABlab(66.22, -3.23, 31.52)
CIE-LCHlch(66.22, 31.68, 95.85°)
OKLaboklab(70.77% -0.0081 0.0772)
OKLCHoklch(70.77% 0.078 96)
XYZxyz(32.9235, 35.6043, 18.2320)
Luminance0.3560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA168 #6876AF
analogous
#AF7E68 #AFA168 #9AAF68
triadic
#AFA168 #68AFA1 #A168AF
tetradic
#AFA168 #68AF7E #6876AF #AF689A
square
#AFA168 #68AF7E #6876AF #AF689A
split-complementary
#AFA168 #689AAF #7E68AF
monochromatic
#665D36 #8E814B #AFA168 #C4BA90 #D9D3B8

Accessibility & contrast

On white

2.59
#AFA168 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA168 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA168
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA168#FFFFFF#000000##000000
##AFA1681.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9E64
Deuteranopia (green-blind)
#B0A36A
Tritanopia (blue-blind)
#B99993
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa168;
/* rgb */ color: rgb(175, 161, 104);
/* oklch */ color: oklch(70.8% 0.078 96.0);
Tailwind
colors: {
  custom: {
    50: '#c8bc94',
    500: '#afa168',
    950: '#000000',
  },
}
SCSS
$custom: #afa168;
$custom-light: #c8bc94;
$custom-dark: #000000;
JSON
{
  "hex": "#afa168",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 104
  },
  "hsl": {
    "h": 48.169,
    "s": 30.736,
    "l": 54.706
  },
  "oklch": {
    "l": 0.70767,
    "c": 0.07767,
    "h": 96
  },
  "luminance": 0.35603
}

Semantic roles & 50–950 ramp

primary
#AFA168
secondary
#AAB0C8
accent
#75C761
background
#FCFBF9
surface
#F8F6F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA168

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

Preview Lab → · Contrast checker → · Palette generator →

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