#AFBA36#AFBA36

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

Color values

HEX#AFBA36
RGBrgb(175, 186, 54)
HSLhsl(65, 55%, 47%)
HSVhsv(65, 71%, 73%)
CMYKcmyk(5.9%, 0%, 71%, 27.1%)
CIE-LABlab(72.56, -20.28, 61.90)
CIE-LCHlch(72.56, 65.13, 108.14°)
OKLaboklab(75.65% -0.0618 0.1377)
OKLCHoklch(75.65% 0.151 114.2)
XYZxyz(35.9050, 44.4988, 10.1870)
Luminance0.4450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA36 #4136BA
analogous
#BA8336 #AFBA36 #6DBA36
triadic
#AFBA36 #36AFBA #BA36AF
tetradic
#AFBA36 #36BA83 #4136BA #BA366D
square
#AFBA36 #36BA83 #4136BA #BA366D
split-complementary
#AFBA36 #366DBA #8336BA
monochromatic
#565B1A #828B28 #AFBA36 #C6D05D #D7DE8D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA36#FFFFFF#000000##000000
##AFBA361.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)
#C8B11F
Deuteranopia (green-blind)
#C7B340
Tritanopia (blue-blind)
#BAAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba36;
/* rgb */ color: rgb(175, 186, 54);
/* oklch */ color: oklch(75.6% 0.151 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace76',
    500: '#afba36',
    950: '#000000',
  },
}
SCSS
$custom: #afba36;
$custom-light: #cace76;
$custom-dark: #000000;
JSON
{
  "hex": "#afba36",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 54
  },
  "hsl": {
    "h": 65,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75649,
    "c": 0.15087,
    "h": 114.2
  },
  "luminance": 0.44498
}

Semantic roles & 50–950 ramp

primary
#AFBA36
secondary
#8984C8
accent
#49DE56
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA36

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

Preview Lab → · Contrast checker → · Palette generator →

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