#AF9338#AF9338

#AF9338 is a light, moderate yellow. Relative luminance 0.303; OKLCH L 67.2% C 0.114 H 91.8°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AF9338
RGBrgb(175, 147, 56)
HSLhsl(46, 52%, 45%)
HSVhsv(46, 68%, 69%)
CMYKcmyk(0%, 16%, 68%, 31.4%)
CIE-LABlab(61.89, 0.23, 50.29)
CIE-LCHlch(61.89, 50.29, 89.74°)
OKLaboklab(67.16% -0.0035 0.1135)
OKLCHoklch(67.16% 0.114 91.8)
XYZxyz(28.8282, 30.2686, 8.0646)
Luminance0.3027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9338 #3854AF
analogous
#AF5738 #AF9338 #90AF38
triadic
#AF9338 #38AF93 #9338AF
tetradic
#AF9338 #38AF57 #3854AF #AF3890
square
#AF9338 #38AF57 #3854AF #AF3890
split-complementary
#AF9338 #3890AF #5738AF
monochromatic
#52451A #816C29 #AF9338 #CAB05A #D9C688

Accessibility & contrast

On white

2.98
#AF9338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AF9338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9338
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9338#FFFFFF#000000##000000
##AF93381.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3912D
Deuteranopia (green-blind)
#AA993C
Tritanopia (blue-blind)
#BD8780
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af9338;
/* rgb */ color: rgb(175, 147, 56);
/* oklch */ color: oklch(67.2% 0.114 91.8);
Tailwind
colors: {
  custom: {
    50: '#cab273',
    500: '#af9338',
    950: '#000000',
  },
}
SCSS
$custom: #af9338;
$custom-light: #cab273;
$custom-dark: #000000;
JSON
{
  "hex": "#af9338",
  "rgb": {
    "r": 175,
    "g": 147,
    "b": 56
  },
  "hsl": {
    "h": 45.882,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.67159,
    "c": 0.11356,
    "h": 91.8
  },
  "luminance": 0.30267
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF9338

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

Preview Lab → · Contrast checker → · Palette generator →

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