#AFA828#AFA828

#AFA828 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.141 H 106.2°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA828
RGBrgb(175, 168, 40)
HSLhsl(57, 63%, 42%)
HSVhsv(57, 77%, 69%)
CMYKcmyk(0%, 4%, 77.1%, 31.4%)
CIE-LABlab(67.48, -11.76, 61.90)
CIE-LCHlch(67.48, 63.01, 100.76°)
OKLaboklab(71.56% -0.0392 0.1352)
OKLCHoklch(71.56% 0.141 106.2)
XYZxyz(32.0662, 37.2736, 7.5125)
Luminance0.3727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA828 #282FAF
analogous
#AF6528 #AFA828 #73AF28
triadic
#AFA828 #28AFA8 #A828AF
tetradic
#AFA828 #28AF65 #282FAF #AF2873
square
#AFA828 #28AF65 #282FAF #AF2873
split-complementary
#AFA828 #2873AF #6528AF
monochromatic
#4B4811 #7D781D #AFA828 #D4CC41 #DFD973

Accessibility & contrast

On white

2.48
#AFA828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA828
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA828#FFFFFF#000000##000000
##AFA8281.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A206
Deuteranopia (green-blind)
#BAA732
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa828;
/* rgb */ color: rgb(175, 168, 40);
/* oklch */ color: oklch(71.6% 0.141 106.2);
Tailwind
colors: {
  custom: {
    50: '#cbc16d',
    500: '#afa828',
    950: '#000000',
  },
}
SCSS
$custom: #afa828;
$custom-light: #cbc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa828",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 56.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.71564,
    "c": 0.14073,
    "h": 106.2
  },
  "luminance": 0.37272
}

Semantic roles & 50–950 ramp

primary
#AFA828
secondary
#6D71C6
accent
#4AE642
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA828

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

Preview Lab → · Contrast checker → · Palette generator →

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