#AFBA31#AFBA31

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

Color values

HEX#AFBA31
RGBrgb(175, 186, 49)
HSLhsl(65, 58%, 46%)
HSVhsv(65, 74%, 73%)
CMYKcmyk(5.9%, 0%, 73.7%, 27.1%)
CIE-LABlab(72.53, -20.53, 63.62)
CIE-LCHlch(72.53, 66.85, 107.88°)
OKLaboklab(75.62% -0.0629 0.1404)
OKLCHoklch(75.62% 0.154 114.1)
XYZxyz(35.7935, 44.4542, 9.6001)
Luminance0.4445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA31 #3C31BA
analogous
#BA8031 #AFBA31 #6ABA31
triadic
#AFBA31 #31AFBA #BA31AF
tetradic
#AFBA31 #31BA80 #3C31BA #BA316A
square
#AFBA31 #31BA80 #3C31BA #BA316A
split-complementary
#AFBA31 #316ABA #8031BA
monochromatic
#545917 #818A24 #AFBA31 #C8D256 #D8DF86

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFBA31#FFFFFF#000000##000000
##AFBA311.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)
#C8B114
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba31;
/* rgb */ color: rgb(175, 186, 49);
/* oklch */ color: oklch(75.6% 0.154 114.1);
Tailwind
colors: {
  custom: {
    50: '#cace73',
    500: '#afba31',
    950: '#000000',
  },
}
SCSS
$custom: #afba31;
$custom-light: #cace73;
$custom-dark: #000000;
JSON
{
  "hex": "#afba31",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 64.818,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75616,
    "c": 0.15388,
    "h": 114.1
  },
  "luminance": 0.44454
}

Semantic roles & 50–950 ramp

primary
#AFBA31
secondary
#847EC9
accent
#46E253
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA31

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

Preview Lab → · Contrast checker → · Palette generator →

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