#AF8F28#AF8F28

#AF8F28 is a light, vivid yellow. Relative luminance 0.289; OKLCH L 66.2% C 0.122 H 90.7°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#AF8F28
RGBrgb(175, 143, 40)
HSLhsl(46, 63%, 42%)
HSVhsv(46, 77%, 69%)
CMYKcmyk(0%, 18.3%, 77.1%, 31.4%)
CIE-LABlab(60.71, 1.61, 55.64)
CIE-LCHlch(60.71, 55.67, 88.34°)
OKLaboklab(66.19% -0.0014 0.1218)
OKLCHoklch(66.19% 0.122 90.7)
XYZxyz(27.8863, 28.9138, 6.1192)
Luminance0.2891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F28 #2848AF
analogous
#AF4C28 #AF8F28 #8CAF28
triadic
#AF8F28 #28AF8F #8F28AF
tetradic
#AF8F28 #28AF4C #2848AF #AF288C
square
#AF8F28 #28AF4C #2848AF #AF288C
split-complementary
#AF8F28 #288CAF #4C28AF
monochromatic
#4B3E11 #7D661D #AF8F28 #D4B141 #DFC573

Accessibility & contrast

On white

3.10
#AF8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#AF8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F28
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F28#FFFFFF#000000##000000
##AF8F281.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D15
Deuteranopia (green-blind)
#A8962E
Tritanopia (blue-blind)
#BE837B
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8f28;
/* rgb */ color: rgb(175, 143, 40);
/* oklch */ color: oklch(66.2% 0.122 90.7);
Tailwind
colors: {
  custom: {
    50: '#cbaf6a',
    500: '#af8f28',
    950: '#000000',
  },
}
SCSS
$custom: #af8f28;
$custom-light: #cbaf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f28",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 45.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66191,
    "c": 0.12179,
    "h": 90.7
  },
  "luminance": 0.28912
}

Semantic roles & 50–950 ramp

primary
#AF8F28
secondary
#6D82C6
accent
#69E642
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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