#AFA535#AFA535

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

Color values

HEX#AFA535
RGBrgb(175, 165, 53)
HSLhsl(55, 54%, 45%)
HSVhsv(55, 70%, 69%)
CMYKcmyk(0%, 5.7%, 69.7%, 31.4%)
CIE-LABlab(66.74, -9.59, 56.52)
CIE-LCHlch(66.74, 57.32, 99.63°)
OKLaboklab(70.99% -0.0319 0.1261)
OKLCHoklch(70.99% 0.13 104.2)
XYZxyz(31.7782, 36.2825, 8.6968)
Luminance0.3628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA535 #353FAF
analogous
#AF6835 #AFA535 #7CAF35
triadic
#AFA535 #35AFA5 #A535AF
tetradic
#AFA535 #35AF68 #353FAF #AF357C
square
#AFA535 #35AF68 #353FAF #AF357C
split-complementary
#AFA535 #357CAF #6835AF
monochromatic
#514C19 #807927 #AFA535 #CCC256 #DAD385

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA535#FFFFFF#000000##000000
##AFA5351.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)
#B49F24
Deuteranopia (green-blind)
#B7A53C
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa535;
/* rgb */ color: rgb(175, 165, 53);
/* oklch */ color: oklch(71.0% 0.130 104.2);
Tailwind
colors: {
  custom: {
    50: '#cabf73',
    500: '#afa535',
    950: '#000000',
  },
}
SCSS
$custom: #afa535;
$custom-light: #cabf73;
$custom-dark: #000000;
JSON
{
  "hex": "#afa535",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 53
  },
  "hsl": {
    "h": 55.082,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70995,
    "c": 0.13009,
    "h": 104.2
  },
  "luminance": 0.36281
}

Semantic roles & 50–950 ramp

primary
#AFA535
secondary
#7C82C4
accent
#57DD4B
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA535

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

Preview Lab → · Contrast checker → · Palette generator →

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