#AFBA2C#AFBA2C

#AFBA2C is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.157 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#AFBA2C
RGBrgb(175, 186, 44)
HSLhsl(65, 62%, 45%)
HSVhsv(65, 76%, 73%)
CMYKcmyk(5.9%, 0%, 76.3%, 27.1%)
CIE-LABlab(72.50, -20.75, 65.23)
CIE-LCHlch(72.50, 68.45, 107.65°)
OKLaboklab(75.59% -0.0639 0.143)
OKLCHoklch(75.59% 0.157 114.1)
XYZxyz(35.6938, 44.4143, 9.0749)
Luminance0.4441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA2C #372CBA
analogous
#BA7E2C #AFBA2C #68BA2C
triadic
#AFBA2C #2CAFBA #BA2CAF
tetradic
#AFBA2C #2CBA7E #372CBA #BA2C68
square
#AFBA2C #2CBA7E #372CBA #BA2C68
split-complementary
#AFBA2C #2C68BA #7E2CBA
monochromatic
#525715 #808920 #AFBA2C #CBD54E #D9E180

Accessibility & contrast

On white

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

On black

9.88
#AFBA2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA2C
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA2C#FFFFFF#000000##000000
##AFBA2C1.002.129.889.88
#FFFFFF2.121.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B104
Deuteranopia (green-blind)
#C7B339
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba2c;
/* rgb */ color: rgb(175, 186, 44);
/* oklch */ color: oklch(75.6% 0.157 114.1);
Tailwind
colors: {
  custom: {
    50: '#cbce71',
    500: '#afba2c',
    950: '#000000',
  },
}
SCSS
$custom: #afba2c;
$custom-light: #cbce71;
$custom-dark: #000000;
JSON
{
  "hex": "#afba2c",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 44
  },
  "hsl": {
    "h": 64.648,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.75586,
    "c": 0.15661,
    "h": 114.1
  },
  "luminance": 0.44414
}

Semantic roles & 50–950 ramp

primary
#AFBA2C
secondary
#7F78CA
accent
#43E550
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBA2C

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

Preview Lab → · Contrast checker → · Palette generator →

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