#AF8E28#AF8E28

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

Color values

HEX#AF8E28
RGBrgb(175, 142, 40)
HSLhsl(45, 63%, 42%)
HSVhsv(45, 77%, 69%)
CMYKcmyk(0%, 18.9%, 77.1%, 31.4%)
CIE-LABlab(60.44, 2.16, 55.39)
CIE-LCHlch(60.44, 55.44, 87.76°)
OKLaboklab(65.98% 0.0001 0.1213)
OKLCHoklch(65.98% 0.121 89.9)
XYZxyz(27.7368, 28.6149, 6.0694)
Luminance0.2861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8E28 #2849AF
analogous
#AF4A28 #AF8E28 #8DAF28
triadic
#AF8E28 #28AF8E #8E28AF
tetradic
#AF8E28 #28AF4A #2849AF #AF288D
square
#AF8E28 #28AF4A #2849AF #AF288D
split-complementary
#AF8E28 #288DAF #4A28AF
monochromatic
#4B3D11 #7D661D #AF8E28 #D4B041 #DFC473

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF8E28#FFFFFF#000000##000000
##AF8E281.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)
#9F8C15
Deuteranopia (green-blind)
#A7962E
Tritanopia (blue-blind)
#BE817A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8e28;
/* rgb */ color: rgb(175, 142, 40);
/* oklch */ color: oklch(66.0% 0.121 89.9);
Tailwind
colors: {
  custom: {
    50: '#cbae6a',
    500: '#af8e28',
    950: '#000000',
  },
}
SCSS
$custom: #af8e28;
$custom-light: #cbae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#af8e28",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 45.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.65982,
    "c": 0.12125,
    "h": 89.9
  },
  "luminance": 0.28613
}

Semantic roles & 50–950 ramp

primary
#AF8E28
secondary
#6D83C6
accent
#6AE642
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8E28

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

Preview Lab → · Contrast checker → · Palette generator →

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