#AFA538#AFA538

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

Color values

HEX#AFA538
RGBrgb(175, 165, 56)
HSLhsl(55, 52%, 45%)
HSVhsv(55, 68%, 69%)
CMYKcmyk(0%, 5.7%, 68%, 31.4%)
CIE-LABlab(66.76, -9.42, 55.33)
CIE-LCHlch(66.76, 56.13, 99.66°)
OKLaboklab(71.02% -0.0311 0.1242)
OKLCHoklch(71.02% 0.128 104)
XYZxyz(31.8494, 36.3110, 9.0717)
Luminance0.3631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA538 #3842AF
analogous
#AF6938 #AFA538 #7DAF38
triadic
#AFA538 #38AFA5 #A538AF
tetradic
#AFA538 #38AF69 #3842AF #AF387D
square
#AFA538 #38AF69 #3842AF #AF387D
split-complementary
#AFA538 #387DAF #6938AF
monochromatic
#524E1A #817929 #AFA538 #CAC15A #D9D288

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA538#FFFFFF#000000##000000
##AFA5381.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)
#B39F29
Deuteranopia (green-blind)
#B7A53F
Tritanopia (blue-blind)
#BC9A8F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa538;
/* rgb */ color: rgb(175, 165, 56);
/* oklch */ color: oklch(71.0% 0.128 104.0);
Tailwind
colors: {
  custom: {
    50: '#cabf75',
    500: '#afa538',
    950: '#000000',
  },
}
SCSS
$custom: #afa538;
$custom-light: #cabf75;
$custom-dark: #000000;
JSON
{
  "hex": "#afa538",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 54.958,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.71019,
    "c": 0.12799,
    "h": 104
  },
  "luminance": 0.3631
}

Semantic roles & 50–950 ramp

primary
#AFA538
secondary
#8085C3
accent
#59DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA538

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

Preview Lab → · Contrast checker → · Palette generator →

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