#AF9421#AF9421

#AF9421 is a light, vivid yellow. Relative luminance 0.304; OKLCH L 67.2% C 0.128 H 94.8°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#AF9421
RGBrgb(175, 148, 33)
HSLhsl(49, 68%, 41%)
HSVhsv(49, 81%, 69%)
CMYKcmyk(0%, 15.4%, 81.1%, 31.4%)
CIE-LABlab(62.00, -1.38, 59.22)
CIE-LCHlch(62.00, 59.23, 91.33°)
OKLaboklab(67.2% -0.0106 0.128)
OKLCHoklch(67.2% 0.128 94.8)
XYZxyz(28.5452, 30.4052, 5.8038)
Luminance0.3040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9421 #213CAF
analogous
#AF4D21 #AF9421 #83AF21
triadic
#AF9421 #21AF94 #9421AF
tetradic
#AF9421 #21AF4D #213CAF #AF2183
square
#AF9421 #21AF4D #213CAF #AF2183
split-complementary
#AF9421 #2183AF #4D21AF
monochromatic
#483D0E #7C6817 #AF9421 #D9BA34 #E3CB68

Accessibility & contrast

On white

2.97
#AF9421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#AF9421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9421
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9421#FFFFFF#000000##000000
##AF94211.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#AB9929
Tritanopia (blue-blind)
#BE887F
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af9421;
/* rgb */ color: rgb(175, 148, 33);
/* oklch */ color: oklch(67.2% 0.128 94.8);
Tailwind
colors: {
  custom: {
    50: '#cbb367',
    500: '#af9421',
    950: '#000000',
  },
}
SCSS
$custom: #af9421;
$custom-light: #cbb367;
$custom-dark: #000000;
JSON
{
  "hex": "#af9421",
  "rgb": {
    "r": 175,
    "g": 148,
    "b": 33
  },
  "hsl": {
    "h": 48.592,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.67203,
    "c": 0.12842,
    "h": 94.8
  },
  "luminance": 0.30404
}

Semantic roles & 50–950 ramp

primary
#AF9421
secondary
#6477C8
accent
#5EEB3D
background
#FDFAF6
surface
#FAF5EB
border
#D3CFC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF9421

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

Preview Lab → · Contrast checker → · Palette generator →

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