#AFB042#AFB042

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

Color values

HEX#AFB042
RGBrgb(175, 176, 66)
HSLhsl(61, 45%, 47%)
HSVhsv(61, 63%, 69%)
CMYKcmyk(0.6%, 0%, 62.5%, 31%)
CIE-LABlab(69.87, -14.52, 54.39)
CIE-LCHlch(69.87, 56.29, 104.95°)
OKLaboklab(73.52% -0.0444 0.1237)
OKLCHoklch(73.52% 0.131 109.7)
XYZxyz(34.1889, 40.5589, 11.1809)
Luminance0.4056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB042 #4342B0
analogous
#B07A42 #AFB042 #78B042
triadic
#AFB042 #42AFB0 #B042AF
tetradic
#AFB042 #42B07A #4342B0 #B04278
square
#AFB042 #42B07A #4342B0 #B04278
split-complementary
#AFB042 #4278B0 #7A42B0
monochromatic
#565721 #838331 #AFB042 #C6C769 #D7D795

Accessibility & contrast

On white

2.30
#AFB042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB042#FFFFFF#000000##000000
##AFB0421.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb042;
/* rgb */ color: rgb(175, 176, 66);
/* oklch */ color: oklch(73.5% 0.131 109.7);
Tailwind
colors: {
  custom: {
    50: '#cac77c',
    500: '#afb042',
    950: '#000000',
  },
}
SCSS
$custom: #afb042;
$custom-light: #cac77c;
$custom-dark: #000000;
JSON
{
  "hex": "#afb042",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 60.545,
    "s": 45.455,
    "l": 47.451
  },
  "oklch": {
    "l": 0.73521,
    "c": 0.13146,
    "h": 109.7
  },
  "luminance": 0.40558
}

Semantic roles & 50–950 ramp

primary
#AFB042
secondary
#8B8BC3
accent
#53D554
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB042

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

Preview Lab → · Contrast checker → · Palette generator →

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