#AF9738#AF9738

#AF9738 is a light, moderate yellow. Relative luminance 0.315; OKLCH L 68.0% C 0.116 H 94.8°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#AF9738
RGBrgb(175, 151, 56)
HSLhsl(48, 52%, 45%)
HSVhsv(48, 68%, 69%)
CMYKcmyk(0%, 13.7%, 68%, 31.4%)
CIE-LABlab(62.96, -1.95, 51.41)
CIE-LCHlch(62.96, 51.45, 92.17°)
OKLaboklab(68% -0.0098 0.1159)
OKLCHoklch(68% 0.116 94.8)
XYZxyz(29.4610, 31.5342, 8.2755)
Luminance0.3153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9738 #3850AF
analogous
#AF5B38 #AF9738 #8BAF38
triadic
#AF9738 #38AF97 #9738AF
tetradic
#AF9738 #38AF5B #3850AF #AF388B
square
#AF9738 #38AF5B #3850AF #AF388B
split-complementary
#AF9738 #388BAF #5B38AF
monochromatic
#52471A #816F29 #AF9738 #CAB45A #D9C988

Accessibility & contrast

On white

2.87
#AF9738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#AF9738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9738
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9738#FFFFFF#000000##000000
##AF97381.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6942C
Deuteranopia (green-blind)
#AC9B3D
Tritanopia (blue-blind)
#BD8C83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9738;
/* rgb */ color: rgb(175, 151, 56);
/* oklch */ color: oklch(68.0% 0.116 94.8);
Tailwind
colors: {
  custom: {
    50: '#cab574',
    500: '#af9738',
    950: '#000000',
  },
}
SCSS
$custom: #af9738;
$custom-light: #cab574;
$custom-dark: #000000;
JSON
{
  "hex": "#af9738",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 56
  },
  "hsl": {
    "h": 47.899,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.68004,
    "c": 0.11628,
    "h": 94.8
  },
  "luminance": 0.31533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9738

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

Preview Lab → · Contrast checker → · Palette generator →

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