#AFA637#AFA637

#AFA637 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.2% C 0.130 H 104.7°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#AFA637
RGBrgb(175, 166, 55)
HSLhsl(56, 52%, 45%)
HSVhsv(56, 69%, 69%)
CMYKcmyk(0%, 5.1%, 68.6%, 31.4%)
CIE-LABlab(67.02, -10.00, 56.01)
CIE-LCHlch(67.02, 56.89, 100.13°)
OKLaboklab(71.23% -0.0328 0.1254)
OKLCHoklch(71.23% 0.13 104.7)
XYZxyz(32.0063, 36.6634, 9.0045)
Luminance0.3666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA637 #3740AF
analogous
#AF6A37 #AFA637 #7CAF37
triadic
#AFA637 #37AFA6 #A637AF
tetradic
#AFA637 #37AF6A #3740AF #AF377C
square
#AFA637 #37AF6A #3740AF #AF377C
split-complementary
#AFA637 #377CAF #6A37AF
monochromatic
#524E1A #807A28 #AFA637 #CBC259 #D9D387

Accessibility & contrast

On white

2.52
#AFA637 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#AFA637 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA637
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA637#FFFFFF#000000##000000
##AFA6371.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A027
Deuteranopia (green-blind)
#B8A53E
Tritanopia (blue-blind)
#BC9B90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa637;
/* rgb */ color: rgb(175, 166, 55);
/* oklch */ color: oklch(71.2% 0.130 104.7);
Tailwind
colors: {
  custom: {
    50: '#cac074',
    500: '#afa637',
    950: '#000000',
  },
}
SCSS
$custom: #afa637;
$custom-light: #cac074;
$custom-dark: #000000;
JSON
{
  "hex": "#afa637",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 55
  },
  "hsl": {
    "h": 55.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71229,
    "c": 0.12964,
    "h": 104.7
  },
  "luminance": 0.36662
}

Semantic roles & 50–950 ramp

primary
#AFA637
secondary
#7F84C3
accent
#57DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA637

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

Preview Lab → · Contrast checker → · Palette generator →

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