#AFA037#AFA037

#AFA037 is a light, vivid yellow. Relative luminance 0.345; OKLCH L 69.9% C 0.124 H 101.1°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#AFA037
RGBrgb(175, 160, 55)
HSLhsl(53, 52%, 45%)
HSVhsv(53, 69%, 69%)
CMYKcmyk(0%, 8.6%, 68.6%, 31.4%)
CIE-LABlab(65.38, -6.84, 54.34)
CIE-LCHlch(65.38, 54.77, 97.17°)
OKLaboklab(69.93% -0.0238 0.1219)
OKLCHoklch(69.93% 0.124 101.1)
XYZxyz(30.9409, 34.5328, 8.6494)
Luminance0.3453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA037 #3746AF
analogous
#AF6437 #AFA037 #82AF37
triadic
#AFA037 #37AFA0 #A037AF
tetradic
#AFA037 #37AF64 #3746AF #AF3782
square
#AFA037 #37AF64 #3746AF #AF3782
split-complementary
#AFA037 #3782AF #6437AF
monochromatic
#524B1A #807528 #AFA037 #CBBC59 #D9CF87

Accessibility & contrast

On white

2.66
#AFA037 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#AFA037 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA037
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA037#FFFFFF#000000##000000
##AFA0371.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B28
Deuteranopia (green-blind)
#B3A13D
Tritanopia (blue-blind)
#BC958B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #afa037;
/* rgb */ color: rgb(175, 160, 55);
/* oklch */ color: oklch(69.9% 0.124 101.1);
Tailwind
colors: {
  custom: {
    50: '#cabb74',
    500: '#afa037',
    950: '#000000',
  },
}
SCSS
$custom: #afa037;
$custom-light: #cabb74;
$custom-dark: #000000;
JSON
{
  "hex": "#afa037",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 55
  },
  "hsl": {
    "h": 52.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.69925,
    "c": 0.1242,
    "h": 101.1
  },
  "luminance": 0.34531
}

Semantic roles & 50–950 ramp

primary
#AFA037
secondary
#7F87C3
accent
#5EDC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AFA037

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

Preview Lab → · Contrast checker → · Palette generator →

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