#AF7F31#AF7F31

#AF7F31 is a light, moderate orange. Relative luminance 0.245; OKLCH L 63.0% C 0.110 H 76.1°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#AF7F31
RGBrgb(175, 127, 49)
HSLhsl(37, 56%, 44%)
HSVhsv(37, 72%, 69%)
CMYKcmyk(0%, 27.4%, 72%, 31.4%)
CIE-LABlab(56.60, 10.91, 47.91)
CIE-LCHlch(56.60, 49.14, 77.18°)
OKLaboklab(62.99% 0.0265 0.1072)
OKLCHoklch(62.99% 0.11 76.1)
XYZxyz(25.8247, 24.5165, 6.2772)
Luminance0.2451 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7F31 #3161AF
analogous
#AF4031 #AF7F31 #A0AF31
triadic
#AF7F31 #31AF7F #7F31AF
tetradic
#AF7F31 #31AF40 #3161AF #AF31A0
square
#AF7F31 #31AF40 #3161AF #AF31A0
split-complementary
#AF7F31 #31A0AF #4031AF
monochromatic
#4F3A16 #7F5C24 #AF7F31 #CE9E4F #DBB87F

Accessibility & contrast

On white

3.56
#AF7F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#AF7F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7F31
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7F31#FFFFFF#000000##000000
##AF7F311.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#918127
Deuteranopia (green-blind)
#9C8C34
Tritanopia (blue-blind)
#BE726F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af7f31;
/* rgb */ color: rgb(175, 127, 49);
/* oklch */ color: oklch(63.0% 0.110 76.1);
Tailwind
colors: {
  custom: {
    50: '#cba46d',
    500: '#af7f31',
    950: '#000000',
  },
}
SCSS
$custom: #af7f31;
$custom-light: #cba46d;
$custom-dark: #000000;
JSON
{
  "hex": "#af7f31",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 37.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.62988,
    "c": 0.11041,
    "h": 76.1
  },
  "luminance": 0.24514
}

Semantic roles & 50–950 ramp

primary
#AF7F31
secondary
#7895C4
accent
#82E048
background
#FDFAF6
surface
#FAF3EC
border
#D3CDC7
text
#140F07
muted
#837F7A

Preview Lab

Preview with #AF7F31

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

Preview Lab → · Contrast checker → · Palette generator →

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