#AF9541#AF9541

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

Color values

HEX#AF9541
RGBrgb(175, 149, 65)
HSLhsl(46, 46%, 47%)
HSVhsv(46, 63%, 69%)
CMYKcmyk(0%, 14.9%, 62.9%, 31.4%)
CIE-LABlab(62.50, -0.29, 46.85)
CIE-LCHlch(62.50, 46.85, 90.35°)
OKLaboklab(67.67% -0.0039 0.1076)
OKLCHoklch(67.67% 0.108 92.1)
XYZxyz(29.3821, 30.9921, 9.4344)
Luminance0.3099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9541 #415BAF
analogous
#AF5E41 #AF9541 #92AF41
triadic
#AF9541 #41AF95 #9541AF
tetradic
#AF9541 #41AF5E #415BAF #AF4192
square
#AF9541 #41AF5E #415BAF #AF4192
split-complementary
#AF9541 #4192AF #5E41AF
monochromatic
#564920 #826F30 #AF9541 #C6B067 #D7C793

Accessibility & contrast

On white

2.92
#AF9541 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#AF9541 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9541
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9541#FFFFFF#000000##000000
##AF95411.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af9541;
/* rgb */ color: rgb(175, 149, 65);
/* oklch */ color: oklch(67.7% 0.108 92.1);
Tailwind
colors: {
  custom: {
    50: '#cab379',
    500: '#af9541',
    950: '#000000',
  },
}
SCSS
$custom: #af9541;
$custom-light: #cab379;
$custom-dark: #000000;
JSON
{
  "hex": "#af9541",
  "rgb": {
    "r": 175,
    "g": 149,
    "b": 65
  },
  "hsl": {
    "h": 45.818,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.67671,
    "c": 0.10765,
    "h": 92.1
  },
  "luminance": 0.30991
}

Semantic roles & 50–950 ramp

primary
#AF9541
secondary
#8997C2
accent
#71D552
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9541

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

Preview Lab → · Contrast checker → · Palette generator →

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