#AFAD37#AFAD37

#AFAD37 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.8% C 0.136 H 108.4°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#AFAD37
RGBrgb(175, 173, 55)
HSLhsl(59, 52%, 45%)
HSVhsv(59, 69%, 69%)
CMYKcmyk(0%, 1.1%, 68.6%, 31.4%)
CIE-LABlab(68.95, -13.64, 57.95)
CIE-LCHlch(68.95, 59.53, 103.25°)
OKLaboklab(72.77% -0.0431 0.1295)
OKLCHoklch(72.77% 0.136 108.4)
XYZxyz(33.3135, 39.2780, 9.4403)
Luminance0.3928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD37 #3739AF
analogous
#AF7137 #AFAD37 #75AF37
triadic
#AFAD37 #37AFAD #AD37AF
tetradic
#AFAD37 #37AF71 #3739AF #AF3775
square
#AFAD37 #37AF71 #3739AF #AF3775
split-complementary
#AFAD37 #3775AF #7137AF
monochromatic
#52511A #807F28 #AFAD37 #CBC959 #D9D887

Accessibility & contrast

On white

2.37
#AFAD37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#AFAD37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD37
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD37#FFFFFF#000000##000000
##AFAD371.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA625
Deuteranopia (green-blind)
#BDAA3F
Tritanopia (blue-blind)
#BBA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad37;
/* rgb */ color: rgb(175, 173, 55);
/* oklch */ color: oklch(72.8% 0.136 108.4);
Tailwind
colors: {
  custom: {
    50: '#cac575',
    500: '#afad37',
    950: '#000000',
  },
}
SCSS
$custom: #afad37;
$custom-light: #cac575;
$custom-dark: #000000;
JSON
{
  "hex": "#afad37",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 55
  },
  "hsl": {
    "h": 59,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72765,
    "c": 0.13649,
    "h": 108.4
  },
  "luminance": 0.39277
}

Semantic roles & 50–950 ramp

primary
#AFAD37
secondary
#7F80C3
accent
#4FDC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAD37

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

Preview Lab → · Contrast checker → · Palette generator →

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