#AF8B1B#AF8B1B

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

Color values

HEX#AF8B1B
RGBrgb(175, 139, 27)
HSLhsl(45, 73%, 40%)
HSVhsv(45, 85%, 69%)
CMYKcmyk(0%, 20.6%, 84.6%, 31.4%)
CIE-LABlab(59.58, 3.36, 58.94)
CIE-LCHlch(59.58, 59.04, 86.74°)
OKLaboklab(65.28% 0.0023 0.1261)
OKLCHoklch(65.28% 0.126 89)
XYZxyz(27.1114, 27.6602, 4.9477)
Luminance0.2766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8B1B #1B3FAF
analogous
#AF411B #AF8B1B #89AF1B
triadic
#AF8B1B #1BAF8B #8B1BAF
tetradic
#AF8B1B #1BAF41 #1B3FAF #AF1B89
square
#AF8B1B #1BAF41 #1B3FAF #AF1B89
split-complementary
#AF8B1B #1B89AF #411BAF
monochromatic
#45370B #7A6113 #AF8B1B #DEB229 #E6C55E

Accessibility & contrast

On white

3.22
#AF8B1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF8B1B#FFFFFF#000000##000000
##AF8B1B1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af8b1b;
/* rgb */ color: rgb(175, 139, 27);
/* oklch */ color: oklch(65.3% 0.126 89.0);
Tailwind
colors: {
  custom: {
    50: '#ccac64',
    500: '#af8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #af8b1b;
$custom-light: #ccac64;
$custom-dark: #000000;
JSON
{
  "hex": "#af8b1b",
  "rgb": {
    "r": 175,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 45.405,
    "s": 73.267,
    "l": 39.608
  },
  "oklch": {
    "l": 0.65283,
    "c": 0.12611,
    "h": 89
  },
  "luminance": 0.27658
}

Semantic roles & 50–950 ramp

primary
#AF8B1B
secondary
#5B76CA
accent
#65F038
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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