#AF9545#AF9545

#AF9545 is a light, moderate yellow. Relative luminance 0.310; OKLCH L 67.7% C 0.104 H 91.4°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#AF9545
RGBrgb(175, 149, 69)
HSLhsl(45, 43%, 48%)
HSVhsv(45, 61%, 69%)
CMYKcmyk(0%, 14.9%, 60.6%, 31.4%)
CIE-LABlab(62.54, -0.00, 44.98)
CIE-LCHlch(62.54, 44.98, 90.00°)
OKLaboklab(67.72% -0.0026 0.1041)
OKLCHoklch(67.72% 0.104 91.4)
XYZxyz(29.5021, 31.0401, 10.0664)
Luminance0.3104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9545 #455FAF
analogous
#AF6045 #AF9545 #94AF45
triadic
#AF9545 #45AF95 #9545AF
tetradic
#AF9545 #45AF60 #455FAF #AF4594
square
#AF9545 #45AF60 #455FAF #AF4594
split-complementary
#AF9545 #4594AF #6045AF
monochromatic
#574A22 #837034 #AF9545 #C5AF6C #D6C798

Accessibility & contrast

On white

2.91
#AF9545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#AF9545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9545
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9545#FFFFFF#000000##000000
##AF95451.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4933D
Deuteranopia (green-blind)
#AA9A48
Tritanopia (blue-blind)
#BC8A83
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af9545;
/* rgb */ color: rgb(175, 149, 69);
/* oklch */ color: oklch(67.7% 0.104 91.4);
Tailwind
colors: {
  custom: {
    50: '#cab37b',
    500: '#af9545',
    950: '#000000',
  },
}
SCSS
$custom: #af9545;
$custom-light: #cab37b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9545",
  "rgb": {
    "r": 175,
    "g": 149,
    "b": 69
  },
  "hsl": {
    "h": 45.283,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.67716,
    "c": 0.10416,
    "h": 91.4
  },
  "luminance": 0.31039
}

Semantic roles & 50–950 ramp

primary
#AF9545
secondary
#8D9AC2
accent
#74D355
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9545

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

Preview Lab → · Contrast checker → · Palette generator →

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