#AFBA34#AFBA34

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

Color values

HEX#AFBA34
RGBrgb(175, 186, 52)
HSLhsl(65, 56%, 47%)
HSVhsv(65, 72%, 73%)
CMYKcmyk(5.9%, 0%, 72%, 27.1%)
CIE-LABlab(72.55, -20.38, 62.60)
CIE-LCHlch(72.55, 65.84, 108.04°)
OKLaboklab(75.64% -0.0622 0.1388)
OKLCHoklch(75.64% 0.152 114.1)
XYZxyz(35.8590, 44.4804, 9.9447)
Luminance0.4448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA34 #3F34BA
analogous
#BA8234 #AFBA34 #6CBA34
triadic
#AFBA34 #34AFBA #BA34AF
tetradic
#AFBA34 #34BA82 #3F34BA #BA346C
square
#AFBA34 #34BA82 #3F34BA #BA346C
split-complementary
#AFBA34 #346CBA #8234BA
monochromatic
#555A19 #828A27 #AFBA34 #C7D15A #D7DE8A

Accessibility & contrast

On white

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

On black

9.90
#AFBA34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA34
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA34#FFFFFF#000000##000000
##AFBA341.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afba34;
/* rgb */ color: rgb(175, 186, 52);
/* oklch */ color: oklch(75.6% 0.152 114.1);
Tailwind
colors: {
  custom: {
    50: '#cace75',
    500: '#afba34',
    950: '#000000',
  },
}
SCSS
$custom: #afba34;
$custom-light: #cace75;
$custom-dark: #000000;
JSON
{
  "hex": "#afba34",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 52
  },
  "hsl": {
    "h": 64.925,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.75636,
    "c": 0.15211,
    "h": 114.1
  },
  "luminance": 0.4448
}

Semantic roles & 50–950 ramp

primary
#AFBA34
secondary
#8781C8
accent
#48E055
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA34

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

Preview Lab → · Contrast checker → · Palette generator →

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