#AFBA32#AFBA32

#AFBA32 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#AFBA32
RGBrgb(175, 186, 50)
HSLhsl(65, 58%, 46%)
HSVhsv(65, 73%, 73%)
CMYKcmyk(5.9%, 0%, 73.1%, 27.1%)
CIE-LABlab(72.54, -20.48, 63.29)
CIE-LCHlch(72.54, 66.52, 107.93°)
OKLaboklab(75.62% -0.0627 0.1399)
OKLCHoklch(75.62% 0.153 114.1)
XYZxyz(35.8149, 44.4628, 9.7125)
Luminance0.4446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA32 #3D32BA
analogous
#BA8132 #AFBA32 #6BBA32
triadic
#AFBA32 #32AFBA #BA32AF
tetradic
#AFBA32 #32BA81 #3D32BA #BA326B
square
#AFBA32 #32BA81 #3D32BA #BA326B
split-complementary
#AFBA32 #326BBA #8132BA
monochromatic
#545A18 #828A25 #AFBA32 #C8D257 #D8DF88

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA32#FFFFFF#000000##000000
##AFBA321.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)
#C8B116
Deuteranopia (green-blind)
#C7B33D
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba32;
/* rgb */ color: rgb(175, 186, 50);
/* oklch */ color: oklch(75.6% 0.153 114.1);
Tailwind
colors: {
  custom: {
    50: '#cace74',
    500: '#afba32',
    950: '#000000',
  },
}
SCSS
$custom: #afba32;
$custom-light: #cace74;
$custom-dark: #000000;
JSON
{
  "hex": "#afba32",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 50
  },
  "hsl": {
    "h": 64.853,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.75622,
    "c": 0.1533,
    "h": 114.1
  },
  "luminance": 0.44462
}

Semantic roles & 50–950 ramp

primary
#AFBA32
secondary
#857FC9
accent
#47E153
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA32

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

Preview Lab → · Contrast checker → · Palette generator →

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