#BAD21F#BAD21F

#BAD21F is a light, vivid yellow. Relative luminance 0.566; OKLCH L 81.8% C 0.184 H 117.9°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#BAD21F
RGBrgb(186, 210, 31)
HSLhsl(68, 74%, 47%)
HSVhsv(68, 85%, 82%)
CMYKcmyk(11.4%, 0%, 85.2%, 17.6%)
CIE-LABlab(79.97, -28.22, 75.44)
CIE-LCHlch(79.97, 80.54, 110.51°)
OKLaboklab(81.77% -0.0859 0.1623)
OKLCHoklch(81.77% 0.184 117.9)
XYZxyz(43.5448, 56.6317, 9.9331)
Luminance0.5663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAD21F #371FD2
analogous
#D2911F #BAD21F #60D21F
triadic
#BAD21F #1FBAD2 #D21FBA
tetradic
#BAD21F #1FD291 #371FD2 #D21F60
square
#BAD21F #1FD291 #371FD2 #D21F60
split-complementary
#BAD21F #1F60D2 #911FD2
monochromatic
#5C670F #8B9D17 #BAD21F #D0E44A #DEEC7F

Accessibility & contrast

On white

1.70
#BAD21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#BAD21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAD21F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAD21F#FFFFFF#000000##000000
##BAD21F1.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C600
Deuteranopia (green-blind)
#DEC735
Tritanopia (blue-blind)
#C6C6B3
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #bad21f;
/* rgb */ color: rgb(186, 210, 31);
/* oklch */ color: oklch(81.8% 0.184 117.9);
Tailwind
colors: {
  custom: {
    50: '#d3df70',
    500: '#bad21f',
    950: '#000000',
  },
}
SCSS
$custom: #bad21f;
$custom-light: #d3df70;
$custom-dark: #000000;
JSON
{
  "hex": "#bad21f",
  "rgb": {
    "r": 186,
    "g": 210,
    "b": 31
  },
  "hsl": {
    "h": 68.045,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.81773,
    "c": 0.18362,
    "h": 117.9
  },
  "luminance": 0.56631
}

Semantic roles & 50–950 ramp

primary
#BAD21F
secondary
#2E2471
accent
#37F150
background
#FEFEFB
surface
#FCFCF1
border
#D5D5CB
text
#151509
muted
#84847D

Preview Lab

Preview with #BAD21F

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

Preview Lab → · Contrast checker → · Palette generator →

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