#AFA937#AFA937

#AFA937 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 71.9% C 0.133 H 106.3°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA937
RGBrgb(175, 169, 55)
HSLhsl(57, 52%, 45%)
HSVhsv(57, 69%, 69%)
CMYKcmyk(0%, 3.4%, 68.6%, 31.4%)
CIE-LABlab(67.85, -11.57, 56.84)
CIE-LCHlch(67.85, 58.01, 101.51°)
OKLaboklab(71.89% -0.0372 0.1272)
OKLCHoklch(71.89% 0.133 106.3)
XYZxyz(32.5580, 37.7669, 9.1884)
Luminance0.3777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA937 #373DAF
analogous
#AF6D37 #AFA937 #79AF37
triadic
#AFA937 #37AFA9 #A937AF
tetradic
#AFA937 #37AF6D #373DAF #AF3779
square
#AFA937 #37AF6D #373DAF #AF3779
split-complementary
#AFA937 #3779AF #6D37AF
monochromatic
#524F1A #807C28 #AFA937 #CBC559 #D9D587

Accessibility & contrast

On white

2.46
#AFA937 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA937
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA937#FFFFFF#000000##000000
##AFA9371.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A326
Deuteranopia (green-blind)
#BAA73F
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa937;
/* rgb */ color: rgb(175, 169, 55);
/* oklch */ color: oklch(71.9% 0.133 106.3);
Tailwind
colors: {
  custom: {
    50: '#cac275',
    500: '#afa937',
    950: '#000000',
  },
}
SCSS
$custom: #afa937;
$custom-light: #cac275;
$custom-dark: #000000;
JSON
{
  "hex": "#afa937",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 55
  },
  "hsl": {
    "h": 57,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71885,
    "c": 0.13251,
    "h": 106.3
  },
  "luminance": 0.37766
}

Semantic roles & 50–950 ramp

primary
#AFA937
secondary
#7F82C3
accent
#53DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA937

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

Preview Lab → · Contrast checker → · Palette generator →

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