#AFA536#AFA536

#AFA536 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#AFA536
RGBrgb(175, 165, 54)
HSLhsl(55, 53%, 45%)
HSVhsv(55, 69%, 69%)
CMYKcmyk(0%, 5.7%, 69.1%, 31.4%)
CIE-LABlab(66.74, -9.53, 56.13)
CIE-LCHlch(66.74, 56.93, 99.64°)
OKLaboklab(71% -0.0316 0.1255)
OKLCHoklch(71% 0.129 104.1)
XYZxyz(31.8015, 36.2918, 8.8192)
Luminance0.3629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA536 #3640AF
analogous
#AF6836 #AFA536 #7DAF36
triadic
#AFA536 #36AFA5 #A536AF
tetradic
#AFA536 #36AF68 #3640AF #AF367D
square
#AFA536 #36AF68 #3640AF #AF367D
split-complementary
#AFA536 #367DAF #6836AF
monochromatic
#514D19 #807928 #AFA536 #CBC257 #DAD386

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA536#FFFFFF#000000##000000
##AFA5361.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)
#B49F26
Deuteranopia (green-blind)
#B7A53D
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa536;
/* rgb */ color: rgb(175, 165, 54);
/* oklch */ color: oklch(71.0% 0.129 104.1);
Tailwind
colors: {
  custom: {
    50: '#cabf74',
    500: '#afa536',
    950: '#000000',
  },
}
SCSS
$custom: #afa536;
$custom-light: #cabf74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa536",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 54
  },
  "hsl": {
    "h": 55.041,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.71003,
    "c": 0.12941,
    "h": 104.1
  },
  "luminance": 0.36291
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA536

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

Preview Lab → · Contrast checker → · Palette generator →

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