#AF9C38#AF9C38

#AF9C38 is a light, vivid yellow. Relative luminance 0.332; OKLCH L 69.1% C 0.120 H 98.4°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#AF9C38
RGBrgb(175, 156, 56)
HSLhsl(50, 52%, 45%)
HSVhsv(50, 68%, 69%)
CMYKcmyk(0%, 10.9%, 68%, 31.4%)
CIE-LABlab(64.30, -4.64, 52.81)
CIE-LCHlch(64.30, 53.02, 95.02°)
OKLaboklab(69.07% -0.0175 0.1188)
OKLCHoklch(69.07% 0.12 98.4)
XYZxyz(30.2828, 33.1779, 8.5495)
Luminance0.3318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9C38 #384BAF
analogous
#AF6038 #AF9C38 #86AF38
triadic
#AF9C38 #38AF9C #9C38AF
tetradic
#AF9C38 #38AF60 #384BAF #AF3886
square
#AF9C38 #38AF60 #384BAF #AF3886
split-complementary
#AF9C38 #3886AF #6038AF
monochromatic
#52491A #817329 #AF9C38 #CAB85A #D9CC88

Accessibility & contrast

On white

2.75
#AF9C38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#AF9C38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9C38
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9C38#FFFFFF#000000##000000
##AF9C381.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB982B
Deuteranopia (green-blind)
#B09F3E
Tritanopia (blue-blind)
#BC9187
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af9c38;
/* rgb */ color: rgb(175, 156, 56);
/* oklch */ color: oklch(69.1% 0.120 98.4);
Tailwind
colors: {
  custom: {
    50: '#cab874',
    500: '#af9c38',
    950: '#000000',
  },
}
SCSS
$custom: #af9c38;
$custom-light: #cab874;
$custom-dark: #000000;
JSON
{
  "hex": "#af9c38",
  "rgb": {
    "r": 175,
    "g": 156,
    "b": 56
  },
  "hsl": {
    "h": 50.42,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69072,
    "c": 0.12012,
    "h": 98.4
  },
  "luminance": 0.33176
}

Semantic roles & 50–950 ramp

primary
#AF9C38
secondary
#808AC3
accent
#64DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9C38

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

Preview Lab → · Contrast checker → · Palette generator →

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