#AFA259#AFA259

#AFA259 is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.7% C 0.095 H 99.4°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#AFA259
RGBrgb(175, 162, 89)
HSLhsl(51, 35%, 52%)
HSVhsv(51, 49%, 69%)
CMYKcmyk(0%, 7.4%, 49.1%, 31.4%)
CIE-LABlab(66.27, -5.33, 39.41)
CIE-LCHlch(66.27, 39.77, 97.70°)
OKLaboklab(70.74% -0.0156 0.0941)
OKLCHoklch(70.74% 0.095 99.4)
XYZxyz(32.4036, 35.6770, 14.6287)
Luminance0.3568 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA259 #5966AF
analogous
#AF7759 #AFA259 #91AF59
triadic
#AFA259 #59AFA2 #A259AF
tetradic
#AFA259 #59AF77 #5966AF #AF5991
square
#AFA259 #59AF77 #5966AF #AF5991
split-complementary
#AFA259 #5991AF #7759AF
monochromatic
#60582E #897E42 #AFA259 #C3B982 #D7D0AC

Accessibility & contrast

On white

2.58
#AFA259 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#AFA259 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA259
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA259#FFFFFF#000000##000000
##AFA2591.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9E53
Deuteranopia (green-blind)
#B2A35C
Tritanopia (blue-blind)
#BA9991
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa259;
/* rgb */ color: rgb(175, 162, 89);
/* oklch */ color: oklch(70.7% 0.095 99.4);
Tailwind
colors: {
  custom: {
    50: '#c9bd89',
    500: '#afa259',
    950: '#000000',
  },
}
SCSS
$custom: #afa259;
$custom-light: #c9bd89;
$custom-dark: #000000;
JSON
{
  "hex": "#afa259",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 89
  },
  "hsl": {
    "h": 50.93,
    "s": 34.959,
    "l": 51.765
  },
  "oklch": {
    "l": 0.70742,
    "c": 0.09537,
    "h": 99.4
  },
  "luminance": 0.35676
}

Semantic roles & 50–950 ramp

primary
#AFA259
secondary
#9FA5C5
accent
#6DCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA259

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

Preview Lab → · Contrast checker → · Palette generator →

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