#AFA825#AFA825

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

Color values

HEX#AFA825
RGBrgb(175, 168, 37)
HSLhsl(57, 65%, 42%)
HSVhsv(57, 79%, 69%)
CMYKcmyk(0%, 4%, 78.9%, 31.4%)
CIE-LABlab(67.47, -11.87, 62.83)
CIE-LCHlch(67.47, 63.94, 100.70°)
OKLaboklab(71.55% -0.0398 0.1366)
OKLCHoklch(71.55% 0.142 106.3)
XYZxyz(32.0171, 37.2540, 7.2541)
Luminance0.3725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA825 #252CAF
analogous
#AF6325 #AFA825 #71AF25
triadic
#AFA825 #25AFA8 #A825AF
tetradic
#AFA825 #25AF63 #252CAF #AF2571
square
#AFA825 #25AF63 #252CAF #AF2571
split-complementary
#AFA825 #2571AF #6325AF
monochromatic
#4A4710 #7C781A #AFA825 #D6CE3C #E0DB6E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA825#FFFFFF#000000##000000
##AFA8251.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)
#BAA730
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa825;
/* rgb */ color: rgb(175, 168, 37);
/* oklch */ color: oklch(71.5% 0.142 106.3);
Tailwind
colors: {
  custom: {
    50: '#cbc16c',
    500: '#afa825',
    950: '#000000',
  },
}
SCSS
$custom: #afa825;
$custom-light: #cbc16c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa825",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 37
  },
  "hsl": {
    "h": 56.957,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.71548,
    "c": 0.14225,
    "h": 106.3
  },
  "luminance": 0.37253
}

Semantic roles & 50–950 ramp

primary
#AFA825
secondary
#696EC7
accent
#48E840
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA825

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

Preview Lab → · Contrast checker → · Palette generator →

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