#AFBA73#AFBA73

#AFBA73 is a light, moderate yellow. Relative luminance 0.455; OKLCH L 76.4% C 0.095 H 115.9°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#AFBA73
RGBrgb(175, 186, 115)
HSLhsl(69, 34%, 59%)
HSVhsv(69, 38%, 73%)
CMYKcmyk(5.9%, 0%, 38.2%, 27.1%)
CIE-LABlab(73.20, -15.07, 34.73)
CIE-LCHlch(73.20, 37.86, 113.46°)
OKLaboklab(76.37% -0.0413 0.0851)
OKLCHoklch(76.37% 0.095 115.9)
XYZxyz(38.3328, 45.4699, 22.9735)
Luminance0.4547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA73 #7E73BA
analogous
#BAA273 #AFBA73 #8CBA73
triadic
#AFBA73 #73AFBA #BA73AF
tetradic
#AFBA73 #73BAA2 #7E73BA #BA738C
square
#AFBA73 #73BAA2 #7E73BA #BA738C
split-complementary
#AFBA73 #738CBA #A273BA
monochromatic
#6E783B #94A14F #AFBA73 #C6CE9C #DEE2C5

Accessibility & contrast

On white

2.08
#AFBA73 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.09
#AFBA73 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA73
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA73#FFFFFF#000000##000000
##AFBA731.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3B36E
Deuteranopia (green-blind)
#C2B476
Tritanopia (blue-blind)
#B6B3A8
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afba73;
/* rgb */ color: rgb(175, 186, 115);
/* oklch */ color: oklch(76.4% 0.095 115.9);
Tailwind
colors: {
  custom: {
    50: '#c8ce9c',
    500: '#afba73',
    950: '#000000',
  },
}
SCSS
$custom: #afba73;
$custom-light: #c8ce9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afba73",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 115
  },
  "hsl": {
    "h": 69.296,
    "s": 33.971,
    "l": 59.02
  },
  "oklch": {
    "l": 0.76367,
    "c": 0.09458,
    "h": 115.9
  },
  "luminance": 0.4547
}

Semantic roles & 50–950 ramp

primary
#AFBA73
secondary
#BBB6D2
accent
#5ECA6F
background
#FCFCF9
surface
#F8F9F2
border
#D1D2CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFBA73

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

Preview Lab → · Contrast checker → · Palette generator →

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