#AF9725#AF9725

#AF9725 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.9% C 0.128 H 96.5°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AF9725
RGBrgb(175, 151, 37)
HSLhsl(50, 65%, 42%)
HSVhsv(50, 79%, 69%)
CMYKcmyk(0%, 13.7%, 78.9%, 31.4%)
CIE-LABlab(62.83, -2.86, 58.66)
CIE-LCHlch(62.83, 58.73, 92.79°)
OKLaboklab(67.86% -0.0145 0.1276)
OKLCHoklch(67.86% 0.128 96.5)
XYZxyz(29.0813, 31.3823, 6.2755)
Luminance0.3138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9725 #253DAF
analogous
#AF5225 #AF9725 #82AF25
triadic
#AF9725 #25AF97 #9725AF
tetradic
#AF9725 #25AF52 #253DAF #AF2582
square
#AF9725 #25AF52 #253DAF #AF2582
split-complementary
#AF9725 #2582AF #5225AF
monochromatic
#4A4010 #7C6B1A #AF9725 #D6BB3C #E0CC6E

Accessibility & contrast

On white

2.89
#AF9725 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AF9725 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9725
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9725#FFFFFF#000000##000000
##AF97251.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7940A
Deuteranopia (green-blind)
#AD9B2D
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9725;
/* rgb */ color: rgb(175, 151, 37);
/* oklch */ color: oklch(67.9% 0.128 96.5);
Tailwind
colors: {
  custom: {
    50: '#cbb56a',
    500: '#af9725',
    950: '#000000',
  },
}
SCSS
$custom: #af9725;
$custom-light: #cbb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9725",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 37
  },
  "hsl": {
    "h": 49.565,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.67863,
    "c": 0.12843,
    "h": 96.5
  },
  "luminance": 0.31381
}

Semantic roles & 50–950 ramp

primary
#AF9725
secondary
#6979C7
accent
#5DE840
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9725

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

Preview Lab → · Contrast checker → · Palette generator →

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