#AFB037#AFB037

#AFB037 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.4% C 0.140 H 109.9°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#AFB037
RGBrgb(175, 176, 55)
HSLhsl(60, 52%, 45%)
HSVhsv(60, 69%, 69%)
CMYKcmyk(0.6%, 0%, 68.8%, 31%)
CIE-LABlab(69.78, -15.18, 58.78)
CIE-LCHlch(69.78, 60.71, 104.48°)
OKLaboklab(73.43% -0.0474 0.1313)
OKLCHoklch(73.43% 0.14 109.9)
XYZxyz(33.8953, 40.4414, 9.6342)
Luminance0.4044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB037 #3837B0
analogous
#B07437 #AFB037 #72B037
triadic
#AFB037 #37AFB0 #B037AF
tetradic
#AFB037 #37B074 #3837B0 #B03772
square
#AFB037 #37B074 #3837B0 #B03772
split-complementary
#AFB037 #3772B0 #7437B0
monochromatic
#52531A #818128 #AFB037 #CACB59 #D9DA88

Accessibility & contrast

On white

2.31
#AFB037 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#AFB037 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB037
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB037#FFFFFF#000000##000000
##AFB0371.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA924
Deuteranopia (green-blind)
#BFAC40
Tritanopia (blue-blind)
#BBA598
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb037;
/* rgb */ color: rgb(175, 176, 55);
/* oklch */ color: oklch(73.4% 0.140 109.9);
Tailwind
colors: {
  custom: {
    50: '#cac775',
    500: '#afb037',
    950: '#000000',
  },
}
SCSS
$custom: #afb037;
$custom-light: #cac775;
$custom-dark: #000000;
JSON
{
  "hex": "#afb037",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 55
  },
  "hsl": {
    "h": 60.496,
    "s": 52.381,
    "l": 45.294
  },
  "oklch": {
    "l": 0.73429,
    "c": 0.13956,
    "h": 109.9
  },
  "luminance": 0.4044
}

Semantic roles & 50–950 ramp

primary
#AFB037
secondary
#807FC4
accent
#4CDC4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB037

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

Preview Lab → · Contrast checker → · Palette generator →

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