#AFA537#AFA537

#AFA537 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.0% C 0.129 H 104.1°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#AFA537
RGBrgb(175, 165, 55)
HSLhsl(55, 52%, 45%)
HSVhsv(55, 69%, 69%)
CMYKcmyk(0%, 5.7%, 68.6%, 31.4%)
CIE-LABlab(66.75, -9.48, 55.73)
CIE-LCHlch(66.75, 56.53, 99.65°)
OKLaboklab(71.01% -0.0313 0.1248)
OKLCHoklch(71.01% 0.129 104.1)
XYZxyz(31.8252, 36.3013, 8.9441)
Luminance0.3630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA537 #3741AF
analogous
#AF6937 #AFA537 #7DAF37
triadic
#AFA537 #37AFA5 #A537AF
tetradic
#AFA537 #37AF69 #3741AF #AF377D
square
#AFA537 #37AF69 #3741AF #AF377D
split-complementary
#AFA537 #377DAF #6937AF
monochromatic
#524D1A #807928 #AFA537 #CBC159 #D9D287

Accessibility & contrast

On white

2.54
#AFA537 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#AFA537 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA537
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA537#FFFFFF#000000##000000
##AFA5371.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F27
Deuteranopia (green-blind)
#B7A53E
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa537;
/* rgb */ color: rgb(175, 165, 55);
/* oklch */ color: oklch(71.0% 0.129 104.1);
Tailwind
colors: {
  custom: {
    50: '#cabf74',
    500: '#afa537',
    950: '#000000',
  },
}
SCSS
$custom: #afa537;
$custom-light: #cabf74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa537",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 55
  },
  "hsl": {
    "h": 55,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71011,
    "c": 0.1287,
    "h": 104.1
  },
  "luminance": 0.363
}

Semantic roles & 50–950 ramp

primary
#AFA537
secondary
#7F84C3
accent
#58DC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA537

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

Preview Lab → · Contrast checker → · Palette generator →

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