#AFB040#AFB040

#AFB040 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.5% C 0.133 H 109.8°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#AFB040
RGBrgb(175, 176, 64)
HSLhsl(61, 47%, 47%)
HSVhsv(61, 64%, 69%)
CMYKcmyk(0.6%, 0%, 63.6%, 31%)
CIE-LABlab(69.85, -14.65, 55.22)
CIE-LCHlch(69.85, 57.13, 104.86°)
OKLaboklab(73.5% -0.045 0.1252)
OKLCHoklch(73.5% 0.133 109.8)
XYZxyz(34.1310, 40.5357, 10.8757)
Luminance0.4053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB040 #4140B0
analogous
#B07940 #AFB040 #77B040
triadic
#AFB040 #40AFB0 #B040AF
tetradic
#AFB040 #40B079 #4140B0 #B04077
square
#AFB040 #40B079 #4140B0 #B04077
split-complementary
#AFB040 #4077B0 #7940B0
monochromatic
#56561F #828330 #AFB040 #C6C766 #D7D893

Accessibility & contrast

On white

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

On black

9.11
#AFB040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB040
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB040#FFFFFF#000000##000000
##AFB0401.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA932
Deuteranopia (green-blind)
#BFAC47
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb040;
/* rgb */ color: rgb(175, 176, 64);
/* oklch */ color: oklch(73.5% 0.133 109.8);
Tailwind
colors: {
  custom: {
    50: '#cac77a',
    500: '#afb040',
    950: '#000000',
  },
}
SCSS
$custom: #afb040;
$custom-light: #cac77a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb040",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 60.536,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.73503,
    "c": 0.13303,
    "h": 109.8
  },
  "luminance": 0.40535
}

Semantic roles & 50–950 ramp

primary
#AFB040
secondary
#8989C3
accent
#51D653
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB040

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

Preview Lab → · Contrast checker → · Palette generator →

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