#AF8D1F#AF8D1F

#AF8D1F is a light, vivid yellow. Relative luminance 0.283; OKLCH L 65.7% C 0.125 H 90.1°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#AF8D1F
RGBrgb(175, 141, 31)
HSLhsl(46, 70%, 40%)
HSVhsv(46, 82%, 69%)
CMYKcmyk(0%, 19.4%, 82.3%, 31.4%)
CIE-LABlab(60.13, 2.38, 58.20)
CIE-LCHlch(60.13, 58.25, 87.66°)
OKLaboklab(65.72% -0.0001 0.1254)
OKLCHoklch(65.72% 0.125 90.1)
XYZxyz(27.4531, 28.2645, 5.3057)
Luminance0.2826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8D1F #1F41AF
analogous
#AF451F #AF8D1F #89AF1F
triadic
#AF8D1F #1FAF8D #8D1FAF
tetradic
#AF8D1F #1FAF45 #1F41AF #AF1F89
square
#AF8D1F #1FAF45 #1F41AF #AF1F89
split-complementary
#AF8D1F #1F89AF #451FAF
monochromatic
#47390D #7B6316 #AF8D1F #DAB231 #E4C665

Accessibility & contrast

On white

3.16
#AF8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#AF8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8D1F
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8D1F#FFFFFF#000000##000000
##AF8D1F1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#A69526
Tritanopia (blue-blind)
#BE8079
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af8d1f;
/* rgb */ color: rgb(175, 141, 31);
/* oklch */ color: oklch(65.7% 0.125 90.1);
Tailwind
colors: {
  custom: {
    50: '#cbad66',
    500: '#af8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #af8d1f;
$custom-light: #cbad66;
$custom-dark: #000000;
JSON
{
  "hex": "#af8d1f",
  "rgb": {
    "r": 175,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 45.833,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.65719,
    "c": 0.12535,
    "h": 90.1
  },
  "luminance": 0.28263
}

Semantic roles & 50–950 ramp

primary
#AF8D1F
secondary
#6179C9
accent
#65ED3B
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AF8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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