#AFA15D#AFA15D

#AFA15D is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.090 H 98.0°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#AFA15D
RGBrgb(175, 161, 93)
HSLhsl(50, 34%, 53%)
HSVhsv(50, 47%, 69%)
CMYKcmyk(0%, 8%, 46.9%, 31.4%)
CIE-LABlab(66.06, -4.40, 37.09)
CIE-LCHlch(66.06, 37.35, 96.77°)
OKLaboklab(70.59% -0.0125 0.0892)
OKLCHoklch(70.59% 0.09 98)
XYZxyz(32.4007, 35.3952, 15.4790)
Luminance0.3539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA15D #5D6BAF
analogous
#AF785D #AFA15D #94AF5D
triadic
#AFA15D #5DAFA1 #A15DAF
tetradic
#AFA15D #5DAF78 #5D6BAF #AF5D94
square
#AFA15D #5DAF78 #5D6BAF #AF5D94
split-complementary
#AFA15D #5D94AF #785DAF
monochromatic
#615930 #8A7E44 #AFA15D #C3B986 #D7D1AF

Accessibility & contrast

On white

2.60
#AFA15D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#AFA15D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA15D
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA15D#FFFFFF#000000##000000
##AFA15D1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9E57
Deuteranopia (green-blind)
#B1A360
Tritanopia (blue-blind)
#BA9891
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa15d;
/* rgb */ color: rgb(175, 161, 93);
/* oklch */ color: oklch(70.6% 0.090 98.0);
Tailwind
colors: {
  custom: {
    50: '#c8bc8c',
    500: '#afa15d',
    950: '#000000',
  },
}
SCSS
$custom: #afa15d;
$custom-light: #c8bc8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa15d",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 93
  },
  "hsl": {
    "h": 49.756,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.70587,
    "c": 0.0901,
    "h": 98
  },
  "luminance": 0.35394
}

Semantic roles & 50–950 ramp

primary
#AFA15D
secondary
#A2A8C6
accent
#70CA5E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA15D

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

Preview Lab → · Contrast checker → · Palette generator →

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