#AFA028#AFA028

#AFA028 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.8% C 0.134 H 101.9°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#AFA028
RGBrgb(175, 160, 40)
HSLhsl(53, 63%, 42%)
HSVhsv(53, 77%, 69%)
CMYKcmyk(0%, 8.6%, 77.1%, 31.4%)
CIE-LABlab(65.29, -7.56, 59.90)
CIE-LCHlch(65.29, 60.37, 97.19°)
OKLaboklab(69.82% -0.0275 0.1309)
OKLCHoklch(69.82% 0.134 101.9)
XYZxyz(30.6345, 34.4102, 7.0353)
Luminance0.3441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA028 #2837AF
analogous
#AF5C28 #AFA028 #7BAF28
triadic
#AFA028 #28AFA0 #A028AF
tetradic
#AFA028 #28AF5C #2837AF #AF287B
square
#AFA028 #28AF5C #2837AF #AF287B
split-complementary
#AFA028 #287BAF #5C28AF
monochromatic
#4B4511 #7D721D #AFA028 #D4C341 #DFD373

Accessibility & contrast

On white

2.66
#AFA028 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#AFA028 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA028
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA028#FFFFFF#000000##000000
##AFA0281.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0C
Deuteranopia (green-blind)
#B4A131
Tritanopia (blue-blind)
#BD9489
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #afa028;
/* rgb */ color: rgb(175, 160, 40);
/* oklch */ color: oklch(69.8% 0.134 101.9);
Tailwind
colors: {
  custom: {
    50: '#cbbb6c',
    500: '#afa028',
    950: '#000000',
  },
}
SCSS
$custom: #afa028;
$custom-light: #cbbb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa028",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 40
  },
  "hsl": {
    "h": 53.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69818,
    "c": 0.13371,
    "h": 101.9
  },
  "luminance": 0.34409
}

Semantic roles & 50–950 ramp

primary
#AFA028
secondary
#6D77C6
accent
#54E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AFA028

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

Preview Lab → · Contrast checker → · Palette generator →

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