#AF9540#AF9540

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

Color values

HEX#AF9540
RGBrgb(175, 149, 64)
HSLhsl(46, 46%, 47%)
HSVhsv(46, 63%, 69%)
CMYKcmyk(0%, 14.9%, 63.4%, 31.4%)
CIE-LABlab(62.49, -0.36, 47.30)
CIE-LCHlch(62.49, 47.31, 90.43°)
OKLaboklab(67.66% -0.0042 0.1084)
OKLCHoklch(67.66% 0.108 92.2)
XYZxyz(29.3534, 30.9806, 9.2832)
Luminance0.3098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9540 #405AAF
analogous
#AF5E40 #AF9540 #92AF40
triadic
#AF9540 #40AF95 #9540AF
tetradic
#AF9540 #40AF5E #405AAF #AF4092
square
#AF9540 #40AF5E #405AAF #AF4092
split-complementary
#AF9540 #4092AF #5E40AF
monochromatic
#55491F #826F30 #AF9540 #C7B065 #D7C792

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9540#FFFFFF#000000##000000
##AF95401.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)
#A49337
Deuteranopia (green-blind)
#AA9A44
Tritanopia (blue-blind)
#BD8A83
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af9540;
/* rgb */ color: rgb(175, 149, 64);
/* oklch */ color: oklch(67.7% 0.108 92.2);
Tailwind
colors: {
  custom: {
    50: '#cab378',
    500: '#af9540',
    950: '#000000',
  },
}
SCSS
$custom: #af9540;
$custom-light: #cab378;
$custom-dark: #000000;
JSON
{
  "hex": "#af9540",
  "rgb": {
    "r": 175,
    "g": 149,
    "b": 64
  },
  "hsl": {
    "h": 45.946,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.6766,
    "c": 0.10849,
    "h": 92.2
  },
  "luminance": 0.30979
}

Semantic roles & 50–950 ramp

primary
#AF9540
secondary
#8896C3
accent
#71D652
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9540

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

Preview Lab → · Contrast checker → · Palette generator →

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