#AFA824#AFA824

#AFA824 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.5% C 0.143 H 106.3°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA824
RGBrgb(175, 168, 36)
HSLhsl(57, 66%, 41%)
HSVhsv(57, 79%, 69%)
CMYKcmyk(0%, 4%, 79.4%, 31.4%)
CIE-LABlab(67.46, -11.91, 63.13)
CIE-LCHlch(67.46, 64.24, 100.69°)
OKLaboklab(71.54% -0.04 0.137)
OKLCHoklch(71.54% 0.143 106.3)
XYZxyz(32.0016, 37.2478, 7.1726)
Luminance0.3725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA824 #242BAF
analogous
#AF6324 #AFA824 #71AF24
triadic
#AFA824 #24AFA8 #A824AF
tetradic
#AFA824 #24AF63 #242BAF #AF2471
square
#AFA824 #24AF63 #242BAF #AF2471
split-complementary
#AFA824 #2471AF #6324AF
monochromatic
#49470F #7C771A #AFA824 #D6CF3A #E1DB6D

Accessibility & contrast

On white

2.49
#AFA824 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA824#FFFFFF#000000##000000
##AFA8241.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa824;
/* rgb */ color: rgb(175, 168, 36);
/* oklch */ color: oklch(71.5% 0.143 106.3);
Tailwind
colors: {
  custom: {
    50: '#cbc16b',
    500: '#afa824',
    950: '#000000',
  },
}
SCSS
$custom: #afa824;
$custom-light: #cbc16b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa824",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 36
  },
  "hsl": {
    "h": 56.978,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.71543,
    "c": 0.14272,
    "h": 106.3
  },
  "luminance": 0.37247
}

Semantic roles & 50–950 ramp

primary
#AFA824
secondary
#686CC7
accent
#48E93F
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA824

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

Preview Lab → · Contrast checker → · Palette generator →

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