#AFA525#AFA525

#AFA525 is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.9% C 0.140 H 104.7°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#AFA525
RGBrgb(175, 165, 37)
HSLhsl(56, 65%, 42%)
HSVhsv(56, 79%, 69%)
CMYKcmyk(0%, 5.7%, 78.9%, 31.4%)
CIE-LABlab(66.64, -10.31, 62.09)
CIE-LCHlch(66.64, 62.94, 99.43°)
OKLaboklab(70.89% -0.0354 0.135)
OKLCHoklch(70.89% 0.14 104.7)
XYZxyz(31.4697, 36.1591, 7.0717)
Luminance0.3616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA525 #252FAF
analogous
#AF6025 #AFA525 #74AF25
triadic
#AFA525 #25AFA5 #A525AF
tetradic
#AFA525 #25AF60 #252FAF #AF2574
square
#AFA525 #25AF60 #252FAF #AF2574
split-complementary
#AFA525 #2574AF #6025AF
monochromatic
#4A4610 #7C751A #AFA525 #D6CB3C #E0D86E

Accessibility & contrast

On white

2.55
#AFA525 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#AFA525 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA525
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA525#FFFFFF#000000##000000
##AFA5251.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F00
Deuteranopia (green-blind)
#B8A530
Tritanopia (blue-blind)
#BD998D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa525;
/* rgb */ color: rgb(175, 165, 37);
/* oklch */ color: oklch(70.9% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#cbbf6b',
    500: '#afa525',
    950: '#000000',
  },
}
SCSS
$custom: #afa525;
$custom-light: #cbbf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa525",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 37
  },
  "hsl": {
    "h": 55.652,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.7089,
    "c": 0.13955,
    "h": 104.7
  },
  "luminance": 0.36158
}

Semantic roles & 50–950 ramp

primary
#AFA525
secondary
#6970C7
accent
#4CE840
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA525

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

Preview Lab → · Contrast checker → · Palette generator →

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