#AFA53B#AFA53B

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

Color values

HEX#AFA53B
RGBrgb(175, 165, 59)
HSLhsl(55, 50%, 46%)
HSVhsv(55, 66%, 69%)
CMYKcmyk(0%, 5.7%, 66.3%, 31.4%)
CIE-LABlab(66.78, -9.25, 54.11)
CIE-LCHlch(66.78, 54.90, 99.70°)
OKLaboklab(71.04% -0.0302 0.1221)
OKLCHoklch(71.04% 0.126 103.9)
XYZxyz(31.9250, 36.3412, 9.4697)
Luminance0.3634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA53B #3B45AF
analogous
#AF6B3B #AFA53B #7FAF3B
triadic
#AFA53B #3BAFA5 #A53BAF
tetradic
#AFA53B #3BAF6B #3B45AF #AF3B7F
square
#AFA53B #3BAF6B #3B45AF #AF3B7F
split-complementary
#AFA53B #3B7FAF #6B3BAF
monochromatic
#534F1C #817A2C #AFA53B #C9C05E #D8D28C

Accessibility & contrast

On white

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

On black

8.27
#AFA53B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA53B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA53B#FFFFFF#000000##000000
##AFA53B1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa53b;
/* rgb */ color: rgb(175, 165, 59);
/* oklch */ color: oklch(71.0% 0.126 103.9);
Tailwind
colors: {
  custom: {
    50: '#cabf77',
    500: '#afa53b',
    950: '#000000',
  },
}
SCSS
$custom: #afa53b;
$custom-light: #cabf77;
$custom-dark: #000000;
JSON
{
  "hex": "#afa53b",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 59
  },
  "hsl": {
    "h": 54.828,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71044,
    "c": 0.12577,
    "h": 103.9
  },
  "luminance": 0.3634
}

Semantic roles & 50–950 ramp

primary
#AFA53B
secondary
#8388C3
accent
#5BD94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA53B

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

Preview Lab → · Contrast checker → · Palette generator →

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