#AFA428#AFA428

#AFA428 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.137 H 104.1°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA428
RGBrgb(175, 164, 40)
HSLhsl(55, 63%, 42%)
HSVhsv(55, 77%, 69%)
CMYKcmyk(0%, 6.3%, 77.1%, 31.4%)
CIE-LABlab(66.38, -9.67, 60.90)
CIE-LCHlch(66.38, 61.66, 99.02°)
OKLaboklab(70.69% -0.0334 0.133)
OKLCHoklch(70.69% 0.137 104.1)
XYZxyz(31.3391, 35.8194, 7.2701)
Luminance0.3582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA428 #2833AF
analogous
#AF6128 #AFA428 #77AF28
triadic
#AFA428 #28AFA4 #A428AF
tetradic
#AFA428 #28AF61 #2833AF #AF2877
square
#AFA428 #28AF61 #2833AF #AF2877
split-complementary
#AFA428 #2877AF #6128AF
monochromatic
#4B4711 #7D751D #AFA428 #D4C841 #DFD673

Accessibility & contrast

On white

2.57
#AFA428 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA428 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA428
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA428#FFFFFF#000000##000000
##AFA4281.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E09
Deuteranopia (green-blind)
#B7A432
Tritanopia (blue-blind)
#BD988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa428;
/* rgb */ color: rgb(175, 164, 40);
/* oklch */ color: oklch(70.7% 0.137 104.1);
Tailwind
colors: {
  custom: {
    50: '#cbbe6c',
    500: '#afa428',
    950: '#000000',
  },
}
SCSS
$custom: #afa428;
$custom-light: #cbbe6c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa428",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 40
  },
  "hsl": {
    "h": 55.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70688,
    "c": 0.13713,
    "h": 104.1
  },
  "luminance": 0.35818
}

Semantic roles & 50–950 ramp

primary
#AFA428
secondary
#6D74C6
accent
#4FE642
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #AFA428

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

Preview Lab → · Contrast checker → · Palette generator →

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