#AFA128#AFA128

#AFA128 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.0% C 0.135 H 102.4°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA128
RGBrgb(175, 161, 40)
HSLhsl(54, 63%, 42%)
HSVhsv(54, 77%, 69%)
CMYKcmyk(0%, 8%, 77.1%, 31.4%)
CIE-LABlab(65.56, -8.09, 60.15)
CIE-LCHlch(65.56, 60.69, 97.66°)
OKLaboklab(70.04% -0.0289 0.1314)
OKLCHoklch(70.04% 0.135 102.4)
XYZxyz(30.8085, 34.7583, 7.0933)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA128 #2836AF
analogous
#AF5E28 #AFA128 #79AF28
triadic
#AFA128 #28AFA1 #A128AF
tetradic
#AFA128 #28AF5E #2836AF #AF2879
square
#AFA128 #28AF5E #2836AF #AF2879
split-complementary
#AFA128 #2879AF #5E28AF
monochromatic
#4B4511 #7D731D #AFA128 #D4C441 #DFD473

Accessibility & contrast

On white

2.64
#AFA128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#AFA128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA128
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA128#FFFFFF#000000##000000
##AFA1281.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C0C
Deuteranopia (green-blind)
#B5A231
Tritanopia (blue-blind)
#BD958A
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa128;
/* rgb */ color: rgb(175, 161, 40);
/* oklch */ color: oklch(70.0% 0.135 102.4);
Tailwind
colors: {
  custom: {
    50: '#cbbc6c',
    500: '#afa128',
    950: '#000000',
  },
}
SCSS
$custom: #afa128;
$custom-light: #cbbc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa128",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 53.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70035,
    "c": 0.13455,
    "h": 102.4
  },
  "luminance": 0.34757
}

Semantic roles & 50–950 ramp

primary
#AFA128
secondary
#6D76C6
accent
#53E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AFA128

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

Preview Lab → · Contrast checker → · Palette generator →

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