#AF8F31#AF8F31

#AF8F31 is a light, moderate orange. Relative luminance 0.290; OKLCH L 66.3% C 0.116 H 89.6°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#AF8F31
RGBrgb(175, 143, 49)
HSLhsl(45, 56%, 44%)
HSVhsv(45, 72%, 69%)
CMYKcmyk(0%, 18.3%, 72%, 31.4%)
CIE-LABlab(60.77, 2.03, 52.15)
CIE-LCHlch(60.77, 52.19, 87.77°)
OKLaboklab(66.26% 0.0008 0.1162)
OKLCHoklch(66.26% 0.116 89.6)
XYZxyz(28.0576, 28.9824, 7.0215)
Luminance0.2898 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8F31 #3151AF
analogous
#AF5031 #AF8F31 #90AF31
triadic
#AF8F31 #31AF8F #8F31AF
tetradic
#AF8F31 #31AF50 #3151AF #AF3190
square
#AF8F31 #31AF50 #3151AF #AF3190
split-complementary
#AF8F31 #3190AF #5031AF
monochromatic
#4F4116 #7F6824 #AF8F31 #CEAE4F #DBC47F

Accessibility & contrast

On white

3.09
#AF8F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#AF8F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF8F31
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8F31#FFFFFF#000000##000000
##AF8F311.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8D24
Deuteranopia (green-blind)
#A79636
Tritanopia (blue-blind)
#BD837C
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af8f31;
/* rgb */ color: rgb(175, 143, 49);
/* oklch */ color: oklch(66.3% 0.116 89.6);
Tailwind
colors: {
  custom: {
    50: '#cbaf6f',
    500: '#af8f31',
    950: '#000000',
  },
}
SCSS
$custom: #af8f31;
$custom-light: #cbaf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#af8f31",
  "rgb": {
    "r": 175,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 44.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66258,
    "c": 0.11618,
    "h": 89.6
  },
  "luminance": 0.28981
}

Semantic roles & 50–950 ramp

primary
#AF8F31
secondary
#788BC4
accent
#6FE048
background
#FCFAF6
surface
#F9F4EC
border
#D2CEC7
text
#141008
muted
#827F7B

Preview Lab

Preview with #AF8F31

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

Preview Lab → · Contrast checker → · Palette generator →

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