#AFA85F#AFA85F

#AFA85F is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.095 H 103.7°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AFA85F
RGBrgb(175, 168, 95)
HSLhsl(55, 33%, 53%)
HSVhsv(55, 46%, 69%)
CMYKcmyk(0%, 4%, 45.7%, 31.4%)
CIE-LABlab(67.98, -7.93, 38.45)
CIE-LCHlch(67.98, 39.26, 101.65°)
OKLaboklab(72.12% -0.0225 0.0924)
OKLCHoklch(72.12% 0.095 103.7)
XYZxyz(33.7482, 37.9464, 16.3709)
Luminance0.3795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA85F #5F66AF
analogous
#AF805F #AFA85F #8EAF5F
triadic
#AFA85F #5FAFA8 #A85FAF
tetradic
#AFA85F #5FAF80 #5F66AF #AF5F8E
square
#AFA85F #5FAF80 #5F66AF #AF5F8E
split-complementary
#AFA85F #5F8EAF #805FAF
monochromatic
#625E31 #8B8546 #AFA85F #C3BE88 #D8D4B1

Accessibility & contrast

On white

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

On black

8.59
#AFA85F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA85F
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA85F#FFFFFF#000000##000000
##AFA85F1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa85f;
/* rgb */ color: rgb(175, 168, 95);
/* oklch */ color: oklch(72.1% 0.095 103.7);
Tailwind
colors: {
  custom: {
    50: '#c8c18e',
    500: '#afa85f',
    950: '#000000',
  },
}
SCSS
$custom: #afa85f;
$custom-light: #c8c18e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa85f",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 95
  },
  "hsl": {
    "h": 54.75,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.72122,
    "c": 0.09509,
    "h": 103.7
  },
  "luminance": 0.37945
}

Semantic roles & 50–950 ramp

primary
#AFA85F
secondary
#A4A7C6
accent
#68C95E
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA85F

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

Preview Lab → · Contrast checker → · Palette generator →

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