#AFAC37#AFAC37

#AFAC37 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.5% C 0.135 H 107.9°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#AFAC37
RGBrgb(175, 172, 55)
HSLhsl(59, 52%, 45%)
HSVhsv(59, 69%, 69%)
CMYKcmyk(0%, 1.7%, 68.6%, 31.4%)
CIE-LABlab(68.68, -13.13, 57.67)
CIE-LCHlch(68.68, 59.15, 102.82°)
OKLaboklab(72.55% -0.0416 0.1289)
OKLCHoklch(72.55% 0.135 107.9)
XYZxyz(33.1225, 38.8959, 9.3766)
Luminance0.3890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC37 #373AAF
analogous
#AF7037 #AFAC37 #76AF37
triadic
#AFAC37 #37AFAC #AC37AF
tetradic
#AFAC37 #37AF70 #373AAF #AF3776
square
#AFAC37 #37AF70 #373AAF #AF3776
split-complementary
#AFAC37 #3776AF #7037AF
monochromatic
#52501A #807E28 #AFAC37 #CBC859 #D9D787

Accessibility & contrast

On white

2.39
#AFAC37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#AFAC37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC37
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC37#FFFFFF#000000##000000
##AFAC371.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA525
Deuteranopia (green-blind)
#BCA93F
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac37;
/* rgb */ color: rgb(175, 172, 55);
/* oklch */ color: oklch(72.5% 0.135 107.9);
Tailwind
colors: {
  custom: {
    50: '#cac475',
    500: '#afac37',
    950: '#000000',
  },
}
SCSS
$custom: #afac37;
$custom-light: #cac475;
$custom-dark: #000000;
JSON
{
  "hex": "#afac37",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 55
  },
  "hsl": {
    "h": 58.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.72545,
    "c": 0.13548,
    "h": 107.9
  },
  "luminance": 0.38895
}

Semantic roles & 50–950 ramp

primary
#AFAC37
secondary
#7F80C3
accent
#50DC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAC37

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

Preview Lab → · Contrast checker → · Palette generator →

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