#AFA325#AFA325

#AFA325 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.138 H 103.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#AFA325
RGBrgb(175, 163, 37)
HSLhsl(55, 65%, 42%)
HSVhsv(55, 79%, 69%)
CMYKcmyk(0%, 6.9%, 78.9%, 31.4%)
CIE-LABlab(66.09, -9.26, 61.60)
CIE-LCHlch(66.09, 62.29, 98.55°)
OKLaboklab(70.45% -0.0325 0.1339)
OKLCHoklch(70.45% 0.138 103.6)
XYZxyz(31.1117, 35.4432, 6.9523)
Luminance0.3544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA325 #2531AF
analogous
#AF5E25 #AFA325 #76AF25
triadic
#AFA325 #25AFA3 #A325AF
tetradic
#AFA325 #25AF5E #2531AF #AF2576
square
#AFA325 #25AF5E #2531AF #AF2576
split-complementary
#AFA325 #2576AF #5E25AF
monochromatic
#4A4510 #7C741A #AFA325 #D6C83C #E0D66E

Accessibility & contrast

On white

2.60
#AFA325 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#AFA325 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA325
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA325#FFFFFF#000000##000000
##AFA3251.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D01
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#BD978C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa325;
/* rgb */ color: rgb(175, 163, 37);
/* oklch */ color: oklch(70.5% 0.138 103.6);
Tailwind
colors: {
  custom: {
    50: '#cbbd6b',
    500: '#afa325',
    950: '#000000',
  },
}
SCSS
$custom: #afa325;
$custom-light: #cbbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa325",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 37
  },
  "hsl": {
    "h": 54.783,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.70453,
    "c": 0.13781,
    "h": 103.6
  },
  "luminance": 0.35442
}

Semantic roles & 50–950 ramp

primary
#AFA325
secondary
#6971C7
accent
#4EE840
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA325

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

Preview Lab → · Contrast checker → · Palette generator →

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