#AF9839#AF9839

#AF9839 is a light, moderate yellow. Relative luminance 0.319; OKLCH L 68.2% C 0.116 H 95.4°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#AF9839
RGBrgb(175, 152, 57)
HSLhsl(48, 51%, 45%)
HSVhsv(48, 67%, 69%)
CMYKcmyk(0%, 13.1%, 67.4%, 31.4%)
CIE-LABlab(63.23, -2.43, 51.27)
CIE-LCHlch(63.23, 51.33, 92.71°)
OKLaboklab(68.23% -0.011 0.1157)
OKLCHoklch(68.23% 0.116 95.4)
XYZxyz(29.6474, 31.8674, 8.4595)
Luminance0.3187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9839 #3950AF
analogous
#AF5D39 #AF9839 #8BAF39
triadic
#AF9839 #39AF98 #9839AF
tetradic
#AF9839 #39AF5D #3950AF #AF398B
square
#AF9839 #39AF5D #3950AF #AF398B
split-complementary
#AF9839 #398BAF #5D39AF
monochromatic
#53481B #81702A #AF9839 #CAB45B #D9C98A

Accessibility & contrast

On white

2.85
#AF9839 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#AF9839 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9839
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9839#FFFFFF#000000##000000
##AF98391.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7952D
Deuteranopia (green-blind)
#AD9C3E
Tritanopia (blue-blind)
#BD8D84
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9839;
/* rgb */ color: rgb(175, 152, 57);
/* oklch */ color: oklch(68.2% 0.116 95.4);
Tailwind
colors: {
  custom: {
    50: '#cab674',
    500: '#af9839',
    950: '#000000',
  },
}
SCSS
$custom: #af9839;
$custom-light: #cab674;
$custom-dark: #000000;
JSON
{
  "hex": "#af9839",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 57
  },
  "hsl": {
    "h": 48.305,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.68226,
    "c": 0.11626,
    "h": 95.4
  },
  "luminance": 0.31866
}

Semantic roles & 50–950 ramp

primary
#AF9839
secondary
#818EC3
accent
#69DA4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9839

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

Preview Lab → · Contrast checker → · Palette generator →

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