#AF9841#AF9841

#AF9841 is a light, moderate yellow. Relative luminance 0.320; OKLCH L 68.3% C 0.110 H 94.5°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#AF9841
RGBrgb(175, 152, 65)
HSLhsl(47, 46%, 47%)
HSVhsv(47, 63%, 69%)
CMYKcmyk(0%, 13.1%, 62.9%, 31.4%)
CIE-LABlab(63.30, -1.92, 47.73)
CIE-LCHlch(63.30, 47.77, 92.30°)
OKLaboklab(68.31% -0.0086 0.1095)
OKLCHoklch(68.31% 0.11 94.5)
XYZxyz(29.8629, 31.9536, 9.5947)
Luminance0.3195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9841 #4158AF
analogous
#AF6141 #AF9841 #8FAF41
triadic
#AF9841 #41AF98 #9841AF
tetradic
#AF9841 #41AF61 #4158AF #AF418F
square
#AF9841 #41AF61 #4158AF #AF418F
split-complementary
#AF9841 #418FAF #6141AF
monochromatic
#564A20 #827130 #AF9841 #C6B267 #D7C993

Accessibility & contrast

On white

2.84
#AF9841 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#AF9841 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9841
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9841#FFFFFF#000000##000000
##AF98411.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79537
Deuteranopia (green-blind)
#AD9C45
Tritanopia (blue-blind)
#BC8D85
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9841;
/* rgb */ color: rgb(175, 152, 65);
/* oklch */ color: oklch(68.3% 0.110 94.5);
Tailwind
colors: {
  custom: {
    50: '#cab679',
    500: '#af9841',
    950: '#000000',
  },
}
SCSS
$custom: #af9841;
$custom-light: #cab679;
$custom-dark: #000000;
JSON
{
  "hex": "#af9841",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 65
  },
  "hsl": {
    "h": 47.455,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.68306,
    "c": 0.10981,
    "h": 94.5
  },
  "luminance": 0.31952
}

Semantic roles & 50–950 ramp

primary
#AF9841
secondary
#8995C2
accent
#6ED552
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9841

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

Preview Lab → · Contrast checker → · Palette generator →

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