#AFBA62#AFBA62

#AFBA62 is a light, moderate yellow. Relative luminance 0.451; OKLCH L 76.1% C 0.113 H 115.0°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#AFBA62
RGBrgb(175, 186, 98)
HSLhsl(68, 39%, 56%)
HSVhsv(68, 47%, 73%)
CMYKcmyk(5.9%, 0%, 47.3%, 27.1%)
CIE-LABlab(72.97, -16.94, 43.04)
CIE-LCHlch(72.97, 46.26, 111.49°)
OKLaboklab(76.11% -0.0479 0.1028)
OKLCHoklch(76.11% 0.113 115)
XYZxyz(37.4432, 45.1141, 18.2883)
Luminance0.4511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA62 #6D62BA
analogous
#BA9962 #AFBA62 #83BA62
triadic
#AFBA62 #62AFBA #BA62AF
tetradic
#AFBA62 #62BA99 #6D62BA #BA6283
square
#AFBA62 #62BA99 #6D62BA #BA6283
split-complementary
#AFBA62 #6283BA #9962BA
monochromatic
#687031 #909B44 #AFBA62 #C5CD8D #DADFB7

Accessibility & contrast

On white

2.10
#AFBA62 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#AFBA62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA62
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA62#FFFFFF#000000##000000
##AFBA621.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B25A
Deuteranopia (green-blind)
#C4B467
Tritanopia (blue-blind)
#B8B1A5
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afba62;
/* rgb */ color: rgb(175, 186, 98);
/* oklch */ color: oklch(76.1% 0.113 115.0);
Tailwind
colors: {
  custom: {
    50: '#c8ce90',
    500: '#afba62',
    950: '#000000',
  },
}
SCSS
$custom: #afba62;
$custom-light: #c8ce90;
$custom-dark: #000000;
JSON
{
  "hex": "#afba62",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 98
  },
  "hsl": {
    "h": 67.5,
    "s": 38.938,
    "l": 55.686
  },
  "oklch": {
    "l": 0.76105,
    "c": 0.11343,
    "h": 115
  },
  "luminance": 0.45114
}

Semantic roles & 50–950 ramp

primary
#AFBA62
secondary
#AEAACE
accent
#59CF68
background
#FCFCF9
surface
#F8F9F1
border
#D1D2CB
text
#13130D
muted
#82827E

Preview Lab

Preview with #AFBA62

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

Preview Lab → · Contrast checker → · Palette generator →

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