#AF9238#AF9238

#AF9238 is a light, moderate yellow. Relative luminance 0.300; OKLCH L 66.9% C 0.113 H 91.0°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#AF9238
RGBrgb(175, 146, 56)
HSLhsl(45, 52%, 45%)
HSVhsv(45, 68%, 69%)
CMYKcmyk(0%, 16.6%, 68%, 31.4%)
CIE-LABlab(61.62, 0.78, 50.01)
CIE-LCHlch(61.62, 50.02, 89.11°)
OKLaboklab(66.95% -0.002 0.1129)
OKLCHoklch(66.95% 0.113 91)
XYZxyz(28.6734, 29.9589, 8.0130)
Luminance0.2996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9238 #3855AF
analogous
#AF5638 #AF9238 #90AF38
triadic
#AF9238 #38AF92 #9238AF
tetradic
#AF9238 #38AF56 #3855AF #AF3890
square
#AF9238 #38AF56 #3855AF #AF3890
split-complementary
#AF9238 #3890AF #5638AF
monochromatic
#52451A #816B29 #AF9238 #CAAF5A #D9C588

Accessibility & contrast

On white

3.00
#AF9238 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#AF9238 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF9238
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9238#FFFFFF#000000##000000
##AF92381.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2902D
Deuteranopia (green-blind)
#A9983C
Tritanopia (blue-blind)
#BD867F
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af9238;
/* rgb */ color: rgb(175, 146, 56);
/* oklch */ color: oklch(66.9% 0.113 91.0);
Tailwind
colors: {
  custom: {
    50: '#cab173',
    500: '#af9238',
    950: '#000000',
  },
}
SCSS
$custom: #af9238;
$custom-light: #cab173;
$custom-dark: #000000;
JSON
{
  "hex": "#af9238",
  "rgb": {
    "r": 175,
    "g": 146,
    "b": 56
  },
  "hsl": {
    "h": 45.378,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.66948,
    "c": 0.11293,
    "h": 91
  },
  "luminance": 0.29957
}

Semantic roles & 50–950 ramp

primary
#AF9238
secondary
#8090C3
accent
#6FDB4D
background
#FCFAF7
surface
#F9F5ED
border
#D2CFC8
text
#141008
muted
#827F7B

Preview Lab

Preview with #AF9238

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

Preview Lab → · Contrast checker → · Palette generator →

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