#AFBA28#AFBA28

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

Color values

HEX#AFBA28
RGBrgb(175, 186, 40)
HSLhsl(65, 65%, 44%)
HSVhsv(65, 78%, 73%)
CMYKcmyk(5.9%, 0%, 78.5%, 27.1%)
CIE-LABlab(72.49, -20.91, 66.43)
CIE-LCHlch(72.49, 69.64, 107.47°)
OKLaboklab(75.57% -0.0647 0.1448)
OKLCHoklch(75.57% 0.159 114.1)
XYZxyz(35.6222, 44.3857, 8.6979)
Luminance0.4439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA28 #3328BA
analogous
#BA7C28 #AFBA28 #66BA28
triadic
#AFBA28 #28AFBA #BA28AF
tetradic
#AFBA28 #28BA7C #3328BA #BA2866
square
#AFBA28 #28BA7C #3328BA #BA2866
split-complementary
#AFBA28 #2866BA #7C28BA
monochromatic
#505512 #80881D #AFBA28 #CDD848 #DBE27A

Accessibility & contrast

On white

2.13
#AFBA28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA28#FFFFFF#000000##000000
##AFBA281.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#C8B336
Tritanopia (blue-blind)
#BBAF9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba28;
/* rgb */ color: rgb(175, 186, 40);
/* oklch */ color: oklch(75.6% 0.159 114.1);
Tailwind
colors: {
  custom: {
    50: '#cbce6f',
    500: '#afba28',
    950: '#000000',
  },
}
SCSS
$custom: #afba28;
$custom-light: #cbce6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afba28",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 40
  },
  "hsl": {
    "h": 64.521,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.75565,
    "c": 0.1586,
    "h": 114.1
  },
  "luminance": 0.44385
}

Semantic roles & 50–950 ramp

primary
#AFBA28
secondary
#7A73CA
accent
#40E84D
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFBA28

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

Preview Lab → · Contrast checker → · Palette generator →

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