#AF9128#AF9128

#AF9128 is a light, vivid yellow. Relative luminance 0.295; OKLCH L 66.6% C 0.123 H 92.1°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#AF9128
RGBrgb(175, 145, 40)
HSLhsl(47, 63%, 42%)
HSVhsv(47, 77%, 69%)
CMYKcmyk(0%, 17.1%, 77.1%, 31.4%)
CIE-LABlab(61.24, 0.52, 56.14)
CIE-LCHlch(61.24, 56.14, 89.47°)
OKLaboklab(66.61% -0.0046 0.1229)
OKLCHoklch(66.61% 0.123 92.1)
XYZxyz(28.1892, 29.5197, 6.2202)
Luminance0.2952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9128 #2846AF
analogous
#AF4E28 #AF9128 #89AF28
triadic
#AF9128 #28AF91 #9128AF
tetradic
#AF9128 #28AF4E #2846AF #AF2889
square
#AF9128 #28AF4E #2846AF #AF2889
split-complementary
#AF9128 #2889AF #4E28AF
monochromatic
#4B3E11 #7D681D #AF9128 #D4B341 #DFC773

Accessibility & contrast

On white

3.04
#AF9128 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#AF9128 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF9128
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9128#FFFFFF#000000##000000
##AF91281.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28F14
Deuteranopia (green-blind)
#A9972E
Tritanopia (blue-blind)
#BE857D
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af9128;
/* rgb */ color: rgb(175, 145, 40);
/* oklch */ color: oklch(66.6% 0.123 92.1);
Tailwind
colors: {
  custom: {
    50: '#cbb06a',
    500: '#af9128',
    950: '#000000',
  },
}
SCSS
$custom: #af9128;
$custom-light: #cbb06a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9128",
  "rgb": {
    "r": 175,
    "g": 145,
    "b": 40
  },
  "hsl": {
    "h": 46.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66611,
    "c": 0.12293,
    "h": 92.1
  },
  "luminance": 0.29518
}

Semantic roles & 50–950 ramp

primary
#AF9128
secondary
#6D81C6
accent
#66E642
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF9128

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

Preview Lab → · Contrast checker → · Palette generator →

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