#AF9938#AF9938

#AF9938 is a light, moderate yellow. Relative luminance 0.322; OKLCH L 68.4% C 0.118 H 96.3°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#AF9938
RGBrgb(175, 153, 56)
HSLhsl(49, 52%, 45%)
HSVhsv(49, 68%, 69%)
CMYKcmyk(0%, 12.6%, 68%, 31.4%)
CIE-LABlab(63.49, -3.03, 51.97)
CIE-LCHlch(63.49, 52.06, 93.33°)
OKLaboklab(68.43% -0.0129 0.1171)
OKLCHoklch(68.43% 0.118 96.3)
XYZxyz(29.7856, 32.1835, 8.3837)
Luminance0.3218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9938 #384EAF
analogous
#AF5E38 #AF9938 #89AF38
triadic
#AF9938 #38AF99 #9938AF
tetradic
#AF9938 #38AF5E #384EAF #AF3889
square
#AF9938 #38AF5E #384EAF #AF3889
split-complementary
#AF9938 #3889AF #5E38AF
monochromatic
#52481A #817029 #AF9938 #CAB55A #D9CA88

Accessibility & contrast

On white

2.82
#AF9938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#AF9938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9938
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9938#FFFFFF#000000##000000
##AF99381.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8962B
Deuteranopia (green-blind)
#AE9D3D
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9938;
/* rgb */ color: rgb(175, 153, 56);
/* oklch */ color: oklch(68.4% 0.118 96.3);
Tailwind
colors: {
  custom: {
    50: '#cab674',
    500: '#af9938',
    950: '#000000',
  },
}
SCSS
$custom: #af9938;
$custom-light: #cab674;
$custom-dark: #000000;
JSON
{
  "hex": "#af9938",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 56
  },
  "hsl": {
    "h": 48.908,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.6843,
    "c": 0.11777,
    "h": 96.3
  },
  "luminance": 0.32182
}

Semantic roles & 50–950 ramp

primary
#AF9938
secondary
#808CC3
accent
#67DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9938

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

Preview Lab → · Contrast checker → · Palette generator →

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