#AFA540#AFA540

#AFA540 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.1% C 0.122 H 103.7°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AFA540
RGBrgb(175, 165, 64)
HSLhsl(55, 46%, 47%)
HSVhsv(55, 63%, 69%)
CMYKcmyk(0%, 5.7%, 63.4%, 31.4%)
CIE-LABlab(66.82, -8.93, 52.00)
CIE-LCHlch(66.82, 52.77, 99.75°)
OKLaboklab(71.09% -0.0288 0.1184)
OKLCHoklch(71.09% 0.122 103.7)
XYZxyz(32.0609, 36.3956, 10.1857)
Luminance0.3639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA540 #404AAF
analogous
#AF6E40 #AFA540 #82AF40
triadic
#AFA540 #40AFA5 #A540AF
tetradic
#AFA540 #40AF6E #404AAF #AF4082
square
#AFA540 #40AF6E #404AAF #AF4082
split-complementary
#AFA540 #4082AF #6E40AF
monochromatic
#55501F #827B30 #AFA540 #C7BE65 #D7D192

Accessibility & contrast

On white

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

On black

8.28
#AFA540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA540
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA540#FFFFFF#000000##000000
##AFA5401.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A034
Deuteranopia (green-blind)
#B6A546
Tritanopia (blue-blind)
#BC9A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa540;
/* rgb */ color: rgb(175, 165, 64);
/* oklch */ color: oklch(71.1% 0.122 103.7);
Tailwind
colors: {
  custom: {
    50: '#cabf79',
    500: '#afa540',
    950: '#000000',
  },
}
SCSS
$custom: #afa540;
$custom-light: #cabf79;
$custom-dark: #000000;
JSON
{
  "hex": "#afa540",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 54.595,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.7109,
    "c": 0.12185,
    "h": 103.7
  },
  "luminance": 0.36394
}

Semantic roles & 50–950 ramp

primary
#AFA540
secondary
#888EC3
accent
#5ED652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA540

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

Preview Lab → · Contrast checker → · Palette generator →

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