#AF8E2A#AF8E2A

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

Color values

HEX#AF8E2A
RGBrgb(175, 142, 42)
HSLhsl(45, 61%, 43%)
HSVhsv(45, 76%, 69%)
CMYKcmyk(0%, 18.9%, 76%, 31.4%)
CIE-LABlab(60.45, 2.25, 54.65)
CIE-LCHlch(60.45, 54.70, 87.64°)
OKLaboklab(66% 0.0006 0.1201)
OKLCHoklch(66% 0.12 89.7)
XYZxyz(27.7717, 28.6289, 6.2532)
Luminance0.2863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8E2A #2A4BAF
analogous
#AF4C2A #AF8E2A #8DAF2A
triadic
#AF8E2A #2AAF8E #8E2AAF
tetradic
#AF8E2A #2AAF4C #2A4BAF #AF2A8D
square
#AF8E2A #2AAF4C #2A4BAF #AF2A8D
split-complementary
#AF8E2A #2A8DAF #4C2AAF
monochromatic
#4C3E12 #7E661E #AF8E2A #D2AF44 #DEC475

Accessibility & contrast

On white

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

On black

6.73
#AF8E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8E2A
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8E2A#FFFFFF#000000##000000
##AF8E2A1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C19
Deuteranopia (green-blind)
#A7962F
Tritanopia (blue-blind)
#BE827A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af8e2a;
/* rgb */ color: rgb(175, 142, 42);
/* oklch */ color: oklch(66.0% 0.120 89.7);
Tailwind
colors: {
  custom: {
    50: '#cbae6b',
    500: '#af8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #af8e2a;
$custom-light: #cbae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af8e2a",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 45.113,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.65996,
    "c": 0.12009,
    "h": 89.7
  },
  "luminance": 0.28627
}

Semantic roles & 50–950 ramp

primary
#AF8E2A
secondary
#6F85C6
accent
#6BE443
background
#FDFAF6
surface
#FAF4EC
border
#D3CEC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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