#AFA425#AFA425

#AFA425 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.139 H 104.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA425
RGBrgb(175, 164, 37)
HSLhsl(55, 65%, 42%)
HSVhsv(55, 79%, 69%)
CMYKcmyk(0%, 6.3%, 78.9%, 31.4%)
CIE-LABlab(66.37, -9.79, 61.85)
CIE-LCHlch(66.37, 62.62, 98.99°)
OKLaboklab(70.67% -0.034 0.1344)
OKLCHoklch(70.67% 0.139 104.2)
XYZxyz(31.2900, 35.7998, 7.0118)
Luminance0.3580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA425 #2530AF
analogous
#AF5F25 #AFA425 #75AF25
triadic
#AFA425 #25AFA4 #A425AF
tetradic
#AFA425 #25AF5F #2530AF #AF2575
square
#AFA425 #25AF5F #2530AF #AF2575
split-complementary
#AFA425 #2575AF #5F25AF
monochromatic
#4A4510 #7C751A #AFA425 #D6C93C #E0D76E

Accessibility & contrast

On white

2.57
#AFA425 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA425 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA425
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA425#FFFFFF#000000##000000
##AFA4251.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#BD988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa425;
/* rgb */ color: rgb(175, 164, 37);
/* oklch */ color: oklch(70.7% 0.139 104.2);
Tailwind
colors: {
  custom: {
    50: '#cbbe6b',
    500: '#afa425',
    950: '#000000',
  },
}
SCSS
$custom: #afa425;
$custom-light: #cbbe6b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa425",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 37
  },
  "hsl": {
    "h": 55.217,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.70671,
    "c": 0.13868,
    "h": 104.2
  },
  "luminance": 0.35798
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA425

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

Preview Lab → · Contrast checker → · Palette generator →

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