#AF9A25#AF9A25

#AF9A25 is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.5% C 0.131 H 98.4°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AF9A25
RGBrgb(175, 154, 37)
HSLhsl(51, 65%, 42%)
HSVhsv(51, 79%, 69%)
CMYKcmyk(0%, 12%, 78.9%, 31.4%)
CIE-LABlab(63.64, -4.47, 59.39)
CIE-LCHlch(63.64, 59.56, 94.31°)
OKLaboklab(68.51% -0.019 0.1292)
OKLCHoklch(68.51% 0.131 98.4)
XYZxyz(29.5703, 32.3603, 6.4385)
Luminance0.3236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A25 #253AAF
analogous
#AF5525 #AF9A25 #7FAF25
triadic
#AF9A25 #25AF9A #9A25AF
tetradic
#AF9A25 #25AF55 #253AAF #AF257F
square
#AF9A25 #25AF55 #253AAF #AF257F
split-complementary
#AF9A25 #257FAF #5525AF
monochromatic
#4A4110 #7C6E1A #AF9A25 #D6BE3C #E0CF6E

Accessibility & contrast

On white

2.81
#AF9A25 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AF9A25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A25
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A25#FFFFFF#000000##000000
##AF9A251.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9607
Deuteranopia (green-blind)
#AF9D2D
Tritanopia (blue-blind)
#BD8E84
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a25;
/* rgb */ color: rgb(175, 154, 37);
/* oklch */ color: oklch(68.5% 0.131 98.4);
Tailwind
colors: {
  custom: {
    50: '#cbb76a',
    500: '#af9a25',
    950: '#000000',
  },
}
SCSS
$custom: #af9a25;
$custom-light: #cbb76a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a25",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 37
  },
  "hsl": {
    "h": 50.87,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.68505,
    "c": 0.13058,
    "h": 98.4
  },
  "luminance": 0.32359
}

Semantic roles & 50–950 ramp

primary
#AF9A25
secondary
#6977C7
accent
#59E840
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9A25

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

Preview Lab → · Contrast checker → · Palette generator →

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