#AF8D27#AF8D27

#AF8D27 is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.8% C 0.121 H 89.3°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF8D27
RGBrgb(175, 141, 39)
HSLhsl(45, 64%, 42%)
HSVhsv(45, 78%, 69%)
CMYKcmyk(0%, 19.4%, 77.7%, 31.4%)
CIE-LABlab(60.17, 2.67, 55.51)
CIE-LCHlch(60.17, 55.57, 87.24°)
OKLaboklab(65.77% 0.0015 0.1213)
OKLCHoklch(65.77% 0.121 89.3)
XYZxyz(27.5719, 28.3120, 5.9316)
Luminance0.2831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8D27 #2749AF
analogous
#AF4927 #AF8D27 #8DAF27
triadic
#AF8D27 #27AF8D #8D27AF
tetradic
#AF8D27 #27AF49 #2749AF #AF278D
square
#AF8D27 #27AF49 #2749AF #AF278D
split-complementary
#AF8D27 #278DAF #4927AF
monochromatic
#4B3C11 #7D651C #AF8D27 #D4AF3F #DFC471

Accessibility & contrast

On white

3.15
#AF8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8D27
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8D27#FFFFFF#000000##000000
##AF8D271.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8C14
Deuteranopia (green-blind)
#A6952D
Tritanopia (blue-blind)
#BE8079
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af8d27;
/* rgb */ color: rgb(175, 141, 39);
/* oklch */ color: oklch(65.8% 0.121 89.3);
Tailwind
colors: {
  custom: {
    50: '#cbae69',
    500: '#af8d27',
    950: '#000000',
  },
}
SCSS
$custom: #af8d27;
$custom-light: #cbae69;
$custom-dark: #000000;
JSON
{
  "hex": "#af8d27",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 45,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.65767,
    "c": 0.1213,
    "h": 89.3
  },
  "luminance": 0.2831
}

Semantic roles & 50–950 ramp

primary
#AF8D27
secondary
#6B82C6
accent
#6BE741
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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