#AF9F28#AF9F28

#AF9F28 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.6% C 0.133 H 101.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#AF9F28
RGBrgb(175, 159, 40)
HSLhsl(53, 63%, 42%)
HSVhsv(53, 77%, 69%)
CMYKcmyk(0%, 9.1%, 77.1%, 31.4%)
CIE-LABlab(65.01, -7.03, 59.64)
CIE-LCHlch(65.01, 60.06, 96.72°)
OKLaboklab(69.6% -0.026 0.1303)
OKLCHoklch(69.6% 0.133 101.3)
XYZxyz(30.4618, 34.0649, 6.9777)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F28 #2838AF
analogous
#AF5C28 #AF9F28 #7CAF28
triadic
#AF9F28 #28AF9F #9F28AF
tetradic
#AF9F28 #28AF5C #2838AF #AF287C
square
#AF9F28 #28AF5C #2838AF #AF287C
split-complementary
#AF9F28 #287CAF #5C28AF
monochromatic
#4B4411 #7D721D #AF9F28 #D4C241 #DFD273

Accessibility & contrast

On white

2.69
#AF9F28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#AF9F28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F28
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F28#FFFFFF#000000##000000
##AF9F281.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0D
Deuteranopia (green-blind)
#B3A131
Tritanopia (blue-blind)
#BD9389
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f28;
/* rgb */ color: rgb(175, 159, 40);
/* oklch */ color: oklch(69.6% 0.133 101.3);
Tailwind
colors: {
  custom: {
    50: '#cbbb6c',
    500: '#af9f28',
    950: '#000000',
  },
}
SCSS
$custom: #af9f28;
$custom-light: #cbbb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f28",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 40
  },
  "hsl": {
    "h": 52.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.69601,
    "c": 0.13288,
    "h": 101.3
  },
  "luminance": 0.34063
}

Semantic roles & 50–950 ramp

primary
#AF9F28
secondary
#6D77C6
accent
#55E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9F28

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

Preview Lab → · Contrast checker → · Palette generator →

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