#AFA337#AFA337

#AFA337 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.127 H 102.9°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA337
RGBrgb(175, 163, 55)
HSLhsl(54, 52%, 45%)
HSVhsv(54, 69%, 69%)
CMYKcmyk(0%, 6.9%, 68.6%, 31.4%)
CIE-LABlab(66.20, -8.42, 55.18)
CIE-LCHlch(66.20, 55.81, 98.68°)
OKLaboklab(70.58% -0.0284 0.1237)
OKLCHoklch(70.58% 0.127 102.9)
XYZxyz(31.4673, 35.5855, 8.8248)
Luminance0.3558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA337 #3743AF
analogous
#AF6737 #AFA337 #7FAF37
triadic
#AFA337 #37AFA3 #A337AF
tetradic
#AFA337 #37AF67 #3743AF #AF377F
square
#AFA337 #37AF67 #3743AF #AF377F
split-complementary
#AFA337 #377FAF #6737AF
monochromatic
#524C1A #807828 #AFA337 #CBBF59 #D9D187

Accessibility & contrast

On white

2.59
#AFA337 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#AFA337 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA337
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA337#FFFFFF#000000##000000
##AFA3371.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E28
Deuteranopia (green-blind)
#B5A33E
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa337;
/* rgb */ color: rgb(175, 163, 55);
/* oklch */ color: oklch(70.6% 0.127 102.9);
Tailwind
colors: {
  custom: {
    50: '#cabd74',
    500: '#afa337',
    950: '#000000',
  },
}
SCSS
$custom: #afa337;
$custom-light: #cabd74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa337",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 55
  },
  "hsl": {
    "h": 54,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70575,
    "c": 0.12686,
    "h": 102.9
  },
  "luminance": 0.35584
}

Semantic roles & 50–950 ramp

primary
#AFA337
secondary
#7F85C3
accent
#5BDC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA337

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

Preview Lab → · Contrast checker → · Palette generator →

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