#AFA862#AFA862

#AFA862 is a light, moderate yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.092 H 103.4°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AFA862
RGBrgb(175, 168, 98)
HSLhsl(55, 32%, 54%)
HSVhsv(55, 44%, 69%)
CMYKcmyk(0%, 4%, 44%, 31.4%)
CIE-LABlab(68.02, -7.62, 36.95)
CIE-LCHlch(68.02, 37.73, 101.65°)
OKLaboklab(72.17% -0.0213 0.0893)
OKLCHoklch(72.17% 0.092 103.4)
XYZxyz(33.8872, 38.0020, 17.1030)
Luminance0.3800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA862 #6269AF
analogous
#AF8162 #AFA862 #8FAF62
triadic
#AFA862 #62AFA8 #A862AF
tetradic
#AFA862 #62AF81 #6269AF #AF628F
square
#AFA862 #62AF81 #6269AF #AF628F
split-complementary
#AFA862 #628FAF #8162AF
monochromatic
#645F33 #8C8647 #AFA862 #C4BE8B #D8D5B3

Accessibility & contrast

On white

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

On black

8.60
#AFA862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA862
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA862#FFFFFF#000000##000000
##AFA8621.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A45C
Deuteranopia (green-blind)
#B6A865
Tritanopia (blue-blind)
#B99F97
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa862;
/* rgb */ color: rgb(175, 168, 98);
/* oklch */ color: oklch(72.2% 0.092 103.4);
Tailwind
colors: {
  custom: {
    50: '#c8c190',
    500: '#afa862',
    950: '#000000',
  },
}
SCSS
$custom: #afa862;
$custom-light: #c8c190;
$custom-dark: #000000;
JSON
{
  "hex": "#afa862",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 98
  },
  "hsl": {
    "h": 54.545,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.72168,
    "c": 0.09176,
    "h": 103.4
  },
  "luminance": 0.38001
}

Semantic roles & 50–950 ramp

primary
#AFA862
secondary
#A6A9C7
accent
#69C95F
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA862

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

Preview Lab → · Contrast checker → · Palette generator →

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