#AFBA42#AFBA42

#AFBA42 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.7% C 0.143 H 114.3°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#AFBA42
RGBrgb(175, 186, 66)
HSLhsl(66, 48%, 49%)
HSVhsv(66, 65%, 73%)
CMYKcmyk(5.9%, 0%, 64.5%, 27.1%)
CIE-LABlab(72.64, -19.58, 57.32)
CIE-LCHlch(72.64, 60.58, 108.86°)
OKLaboklab(75.74% -0.0586 0.1299)
OKLCHoklch(75.74% 0.143 114.3)
XYZxyz(36.2224, 44.6258, 11.8587)
Luminance0.4462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA42 #4D42BA
analogous
#BA8942 #AFBA42 #73BA42
triadic
#AFBA42 #42AFBA #BA42AF
tetradic
#AFBA42 #42BA89 #4D42BA #BA4273
square
#AFBA42 #42BA89 #4D42BA #BA4273
split-complementary
#AFBA42 #4273BA #8942BA
monochromatic
#5A6022 #858D32 #AFBA42 #C3CB6E #D6DB9B

Accessibility & contrast

On white

2.12
#AFBA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#AFBA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA42
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA42#FFFFFF#000000##000000
##AFBA421.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B132
Deuteranopia (green-blind)
#C6B34A
Tritanopia (blue-blind)
#BAB0A1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba42;
/* rgb */ color: rgb(175, 186, 66);
/* oklch */ color: oklch(75.7% 0.143 114.3);
Tailwind
colors: {
  custom: {
    50: '#cace7c',
    500: '#afba42',
    950: '#000000',
  },
}
SCSS
$custom: #afba42;
$custom-light: #cace7c;
$custom-dark: #000000;
JSON
{
  "hex": "#afba42",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 65.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.75744,
    "c": 0.14255,
    "h": 114.3
  },
  "luminance": 0.44625
}

Semantic roles & 50–950 ramp

primary
#AFBA42
secondary
#9590C8
accent
#51D75D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA42

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

Preview Lab → · Contrast checker → · Palette generator →

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