#AFBA33#AFBA33

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

Color values

HEX#AFBA33
RGBrgb(175, 186, 51)
HSLhsl(65, 57%, 46%)
HSVhsv(65, 73%, 73%)
CMYKcmyk(5.9%, 0%, 72.6%, 27.1%)
CIE-LABlab(72.54, -20.43, 62.95)
CIE-LCHlch(72.54, 66.18, 107.98°)
OKLaboklab(75.63% -0.0625 0.1394)
OKLCHoklch(75.63% 0.153 114.1)
XYZxyz(35.8367, 44.4715, 9.8274)
Luminance0.4447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA33 #3E33BA
analogous
#BA8233 #AFBA33 #6CBA33
triadic
#AFBA33 #33AFBA #BA33AF
tetradic
#AFBA33 #33BA82 #3E33BA #BA336C
square
#AFBA33 #33BA82 #3E33BA #BA336C
split-complementary
#AFBA33 #336CBA #8233BA
monochromatic
#555A19 #828A26 #AFBA33 #C8D159 #D8DF89

Accessibility & contrast

On white

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

On black

9.89
#AFBA33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA33
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA33#FFFFFF#000000##000000
##AFBA331.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afba33;
/* rgb */ color: rgb(175, 186, 51);
/* oklch */ color: oklch(75.6% 0.153 114.1);
Tailwind
colors: {
  custom: {
    50: '#cace74',
    500: '#afba33',
    950: '#000000',
  },
}
SCSS
$custom: #afba33;
$custom-light: #cace74;
$custom-dark: #000000;
JSON
{
  "hex": "#afba33",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 51
  },
  "hsl": {
    "h": 64.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75629,
    "c": 0.15271,
    "h": 114.1
  },
  "luminance": 0.44471
}

Semantic roles & 50–950 ramp

primary
#AFBA33
secondary
#8680C9
accent
#48E054
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA33

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

Preview Lab → · Contrast checker → · Palette generator →

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