#AF9640#AF9640

#AF9640 is a light, moderate yellow. Relative luminance 0.313; OKLCH L 67.9% C 0.109 H 93.0°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#AF9640
RGBrgb(175, 150, 64)
HSLhsl(46, 46%, 47%)
HSVhsv(46, 63%, 69%)
CMYKcmyk(0%, 14.3%, 63.4%, 31.4%)
CIE-LABlab(62.76, -0.90, 47.60)
CIE-LCHlch(62.76, 47.61, 91.08°)
OKLaboklab(67.87% -0.0058 0.109)
OKLCHoklch(67.87% 0.109 93)
XYZxyz(29.5123, 31.2984, 9.3362)
Luminance0.3130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9640 #4059AF
analogous
#AF5E40 #AF9640 #91AF40
triadic
#AF9640 #40AF96 #9640AF
tetradic
#AF9640 #40AF5E #4059AF #AF4091
square
#AF9640 #40AF5E #4059AF #AF4091
split-complementary
#AF9640 #4091AF #5E40AF
monochromatic
#55491F #827030 #AF9640 #C7B165 #D7C892

Accessibility & contrast

On white

2.89
#AF9640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#AF9640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9640
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9640#FFFFFF#000000##000000
##AF96401.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59437
Deuteranopia (green-blind)
#AB9B44
Tritanopia (blue-blind)
#BC8B83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9640;
/* rgb */ color: rgb(175, 150, 64);
/* oklch */ color: oklch(67.9% 0.109 93.0);
Tailwind
colors: {
  custom: {
    50: '#cab478',
    500: '#af9640',
    950: '#000000',
  },
}
SCSS
$custom: #af9640;
$custom-light: #cab478;
$custom-dark: #000000;
JSON
{
  "hex": "#af9640",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 64
  },
  "hsl": {
    "h": 46.486,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.67871,
    "c": 0.10919,
    "h": 93
  },
  "luminance": 0.31297
}

Semantic roles & 50–950 ramp

primary
#AF9640
secondary
#8895C3
accent
#70D652
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9640

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

Preview Lab → · Contrast checker → · Palette generator →

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