#AF9840#AF9840

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

Color values

HEX#AF9840
RGBrgb(175, 152, 64)
HSLhsl(48, 46%, 47%)
HSVhsv(48, 63%, 69%)
CMYKcmyk(0%, 13.1%, 63.4%, 31.4%)
CIE-LABlab(63.30, -1.98, 48.19)
CIE-LCHlch(63.30, 48.23, 92.36°)
OKLaboklab(68.29% -0.0089 0.1103)
OKLCHoklch(68.29% 0.111 94.6)
XYZxyz(29.8342, 31.9421, 9.4435)
Luminance0.3194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9840 #4057AF
analogous
#AF6140 #AF9840 #8FAF40
triadic
#AF9840 #40AF98 #9840AF
tetradic
#AF9840 #40AF61 #4057AF #AF408F
square
#AF9840 #40AF61 #4057AF #AF408F
split-complementary
#AF9840 #408FAF #6140AF
monochromatic
#554A1F #827130 #AF9840 #C7B365 #D7C992

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9840#FFFFFF#000000##000000
##AF98401.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)
#A79536
Deuteranopia (green-blind)
#AD9C44
Tritanopia (blue-blind)
#BC8D85
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9840;
/* rgb */ color: rgb(175, 152, 64);
/* oklch */ color: oklch(68.3% 0.111 94.6);
Tailwind
colors: {
  custom: {
    50: '#cab679',
    500: '#af9840',
    950: '#000000',
  },
}
SCSS
$custom: #af9840;
$custom-light: #cab679;
$custom-dark: #000000;
JSON
{
  "hex": "#af9840",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 47.568,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.68295,
    "c": 0.11065,
    "h": 94.6
  },
  "luminance": 0.31941
}

Semantic roles & 50–950 ramp

primary
#AF9840
secondary
#8894C3
accent
#6DD652
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9840

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

Preview Lab → · Contrast checker → · Palette generator →

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