#AFA534#AFA534

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

Color values

HEX#AFA534
RGBrgb(175, 165, 52)
HSLhsl(55, 54%, 45%)
HSVhsv(55, 70%, 69%)
CMYKcmyk(0%, 5.7%, 70.3%, 31.4%)
CIE-LABlab(66.73, -9.64, 56.90)
CIE-LCHlch(66.73, 57.71, 99.62°)
OKLaboklab(70.99% -0.0321 0.1268)
OKLCHoklch(70.99% 0.131 104.2)
XYZxyz(31.7555, 36.2734, 8.5769)
Luminance0.3627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA534 #343EAF
analogous
#AF6834 #AFA534 #7CAF34
triadic
#AFA534 #34AFA5 #A534AF
tetradic
#AFA534 #34AF68 #343EAF #AF347C
square
#AFA534 #34AF68 #343EAF #AF347C
split-complementary
#AFA534 #347CAF #6834AF
monochromatic
#514C18 #807926 #AFA534 #CCC254 #DAD383

Accessibility & contrast

On white

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

On black

8.25
#AFA534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA534
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA534#FFFFFF#000000##000000
##AFA5341.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa534;
/* rgb */ color: rgb(175, 165, 52);
/* oklch */ color: oklch(71.0% 0.131 104.2);
Tailwind
colors: {
  custom: {
    50: '#cabf73',
    500: '#afa534',
    950: '#000000',
  },
}
SCSS
$custom: #afa534;
$custom-light: #cabf73;
$custom-dark: #000000;
JSON
{
  "hex": "#afa534",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 52
  },
  "hsl": {
    "h": 55.122,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70987,
    "c": 0.13078,
    "h": 104.2
  },
  "luminance": 0.36272
}

Semantic roles & 50–950 ramp

primary
#AFA534
secondary
#7B81C4
accent
#56DE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA534

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

Preview Lab → · Contrast checker → · Palette generator →

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