#AFA868#AFA868

#AFA868 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.3% C 0.085 H 102.9°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFA868
RGBrgb(175, 168, 104)
HSLhsl(54, 31%, 55%)
HSVhsv(54, 41%, 69%)
CMYKcmyk(0%, 4%, 40.6%, 31.4%)
CIE-LABlab(68.11, -6.97, 33.94)
CIE-LCHlch(68.11, 34.65, 101.61°)
OKLaboklab(72.27% -0.0189 0.0828)
OKLCHoklch(72.27% 0.085 102.9)
XYZxyz(34.1811, 38.1196, 18.6513)
Luminance0.3812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA868 #686FAF
analogous
#AF8568 #AFA868 #92AF68
triadic
#AFA868 #68AFA8 #A868AF
tetradic
#AFA868 #68AF85 #686FAF #AF6892
square
#AFA868 #68AF85 #686FAF #AF6892
split-complementary
#AFA868 #6892AF #8568AF
monochromatic
#666236 #8E884B #AFA868 #C4BF90 #D9D6B8

Accessibility & contrast

On white

2.44
#AFA868 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AFA868 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA868
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA868#FFFFFF#000000##000000
##AFA8681.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A463
Deuteranopia (green-blind)
#B5A86B
Tritanopia (blue-blind)
#B9A098
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa868;
/* rgb */ color: rgb(175, 168, 104);
/* oklch */ color: oklch(72.3% 0.085 102.9);
Tailwind
colors: {
  custom: {
    50: '#c8c194',
    500: '#afa868',
    950: '#000000',
  },
}
SCSS
$custom: #afa868;
$custom-light: #c8c194;
$custom-dark: #000000;
JSON
{
  "hex": "#afa868",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 104
  },
  "hsl": {
    "h": 54.085,
    "s": 30.736,
    "l": 54.706
  },
  "oklch": {
    "l": 0.72265,
    "c": 0.08491,
    "h": 102.9
  },
  "luminance": 0.38119
}

Semantic roles & 50–950 ramp

primary
#AFA868
secondary
#AAADC8
accent
#6BC761
background
#FCFBF9
surface
#F8F7F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA868

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

Preview Lab → · Contrast checker → · Palette generator →

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