#AF8B1C#AF8B1C

#AF8B1C is a light, vivid yellow. Relative luminance 0.277; OKLCH L 65.3% C 0.126 H 88.9°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#AF8B1C
RGBrgb(175, 139, 28)
HSLhsl(45, 72%, 40%)
HSVhsv(45, 84%, 69%)
CMYKcmyk(0%, 20.6%, 84%, 31.4%)
CIE-LABlab(59.58, 3.39, 58.65)
CIE-LCHlch(59.58, 58.75, 86.70°)
OKLaboklab(65.29% 0.0025 0.1257)
OKLCHoklch(65.29% 0.126 88.9)
XYZxyz(27.1231, 27.6649, 5.0097)
Luminance0.2766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8B1C #1C40AF
analogous
#AF411C #AF8B1C #8AAF1C
triadic
#AF8B1C #1CAF8B #8B1CAF
tetradic
#AF8B1C #1CAF41 #1C40AF #AF1C8A
square
#AF8B1C #1CAF41 #1C40AF #AF1C8A
split-complementary
#AF8B1C #1C8AAF #411CAF
monochromatic
#45370B #7A6114 #AF8B1C #DDB22B #E6C560

Accessibility & contrast

On white

3.21
#AF8B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#AF8B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8B1C
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8B1C#FFFFFF#000000##000000
##AF8B1C1.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#A59424
Tritanopia (blue-blind)
#BE7E77
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af8b1c;
/* rgb */ color: rgb(175, 139, 28);
/* oklch */ color: oklch(65.3% 0.126 88.9);
Tailwind
colors: {
  custom: {
    50: '#ccac64',
    500: '#af8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #af8b1c;
$custom-light: #ccac64;
$custom-dark: #000000;
JSON
{
  "hex": "#af8b1c",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 45.306,
    "s": 72.414,
    "l": 39.804
  },
  "oklch": {
    "l": 0.65288,
    "c": 0.12569,
    "h": 88.9
  },
  "luminance": 0.27663
}

Semantic roles & 50–950 ramp

primary
#AF8B1C
secondary
#5D78CA
accent
#65EF39
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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