#AF9838#AF9838

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

Color values

HEX#AF9838
RGBrgb(175, 152, 56)
HSLhsl(48, 52%, 45%)
HSVhsv(48, 68%, 69%)
CMYKcmyk(0%, 13.1%, 68%, 31.4%)
CIE-LABlab(63.22, -2.49, 51.69)
CIE-LCHlch(63.22, 51.75, 92.75°)
OKLaboklab(68.22% -0.0113 0.1165)
OKLCHoklch(68.22% 0.117 95.6)
XYZxyz(29.6227, 31.8575, 8.3294)
Luminance0.3186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9838 #384FAF
analogous
#AF5C38 #AF9838 #8BAF38
triadic
#AF9838 #38AF98 #9838AF
tetradic
#AF9838 #38AF5C #384FAF #AF388B
square
#AF9838 #38AF5C #384FAF #AF388B
split-complementary
#AF9838 #388BAF #5C38AF
monochromatic
#52471A #817029 #AF9838 #CAB55A #D9C988

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9838#FFFFFF#000000##000000
##AF98381.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)
#A7952C
Deuteranopia (green-blind)
#AD9C3D
Tritanopia (blue-blind)
#BD8D84
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9838;
/* rgb */ color: rgb(175, 152, 56);
/* oklch */ color: oklch(68.2% 0.117 95.6);
Tailwind
colors: {
  custom: {
    50: '#cab674',
    500: '#af9838',
    950: '#000000',
  },
}
SCSS
$custom: #af9838;
$custom-light: #cab674;
$custom-dark: #000000;
JSON
{
  "hex": "#af9838",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 56
  },
  "hsl": {
    "h": 48.403,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.68217,
    "c": 0.11702,
    "h": 95.6
  },
  "luminance": 0.31856
}

Semantic roles & 50–950 ramp

primary
#AF9838
secondary
#808DC3
accent
#68DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9838

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

Preview Lab → · Contrast checker → · Palette generator →

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