#AF8E27#AF8E27

#AF8E27 is a light, vivid yellow. Relative luminance 0.286; OKLCH L 66.0% C 0.122 H 90.0°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AF8E27
RGBrgb(175, 142, 39)
HSLhsl(45, 64%, 42%)
HSVhsv(45, 78%, 69%)
CMYKcmyk(0%, 18.9%, 77.7%, 31.4%)
CIE-LABlab(60.43, 2.12, 55.76)
CIE-LCHlch(60.43, 55.80, 87.82°)
OKLaboklab(65.97% -0.0001 0.1218)
OKLCHoklch(65.97% 0.122 90)
XYZxyz(27.7201, 28.6082, 5.9810)
Luminance0.2861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8E27 #2748AF
analogous
#AF4A27 #AF8E27 #8CAF27
triadic
#AF8E27 #27AF8E #8E27AF
tetradic
#AF8E27 #27AF4A #2748AF #AF278C
square
#AF8E27 #27AF4A #2748AF #AF278C
split-complementary
#AF8E27 #278CAF #4A27AF
monochromatic
#4B3D11 #7D651C #AF8E27 #D4B03F #DFC571

Accessibility & contrast

On white

3.12
#AF8E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AF8E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8E27
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8E27#FFFFFF#000000##000000
##AF8E271.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C13
Deuteranopia (green-blind)
#A7962D
Tritanopia (blue-blind)
#BE817A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8e27;
/* rgb */ color: rgb(175, 142, 39);
/* oklch */ color: oklch(66.0% 0.122 90.0);
Tailwind
colors: {
  custom: {
    50: '#cbae69',
    500: '#af8e27',
    950: '#000000',
  },
}
SCSS
$custom: #af8e27;
$custom-light: #cbae69;
$custom-dark: #000000;
JSON
{
  "hex": "#af8e27",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 45.441,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.65975,
    "c": 0.12181,
    "h": 90
  },
  "luminance": 0.28606
}

Semantic roles & 50–950 ramp

primary
#AF8E27
secondary
#6B82C6
accent
#69E741
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8E27

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

Preview Lab → · Contrast checker → · Palette generator →

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