#BAD028#BAD028

#BAD028 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.4% C 0.178 H 117.4°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#BAD028
RGBrgb(186, 208, 40)
HSLhsl(68, 68%, 49%)
HSVhsv(68, 81%, 82%)
CMYKcmyk(10.6%, 0%, 80.8%, 18.4%)
CIE-LABlab(79.45, -27.00, 72.89)
CIE-LCHlch(79.45, 77.73, 110.33°)
OKLaboklab(81.36% -0.082 0.1582)
OKLCHoklch(81.36% 0.178 117.4)
XYZxyz(43.1897, 55.7046, 10.4839)
Luminance0.5570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAD028 #3E28D0
analogous
#D09228 #BAD028 #66D028
triadic
#BAD028 #28BAD0 #D028BA
tetradic
#BAD028 #28D092 #3E28D0 #D02866
square
#BAD028 #28D092 #3E28D0 #D02866
split-complementary
#BAD028 #2866D0 #9228D0
monochromatic
#5E6914 #8C9D1E #BAD028 #CDDF57 #DCE88A

Accessibility & contrast

On white

1.73
#BAD028 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#BAD028 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAD028
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAD028#FFFFFF#000000##000000
##BAD0281.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC400
Deuteranopia (green-blind)
#DCC63A
Tritanopia (blue-blind)
#C6C4B2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #bad028;
/* rgb */ color: rgb(186, 208, 40);
/* oklch */ color: oklch(81.4% 0.178 117.4);
Tailwind
colors: {
  custom: {
    50: '#d3de72',
    500: '#bad028',
    950: '#000000',
  },
}
SCSS
$custom: #bad028;
$custom-light: #d3de72;
$custom-dark: #000000;
JSON
{
  "hex": "#bad028",
  "rgb": {
    "r": 186,
    "g": 208,
    "b": 40
  },
  "hsl": {
    "h": 67.857,
    "s": 67.742,
    "l": 48.627
  },
  "oklch": {
    "l": 0.81359,
    "c": 0.17822,
    "h": 117.4
  },
  "luminance": 0.55704
}

Semantic roles & 50–950 ramp

primary
#BAD028
secondary
#332973
accent
#3DEB54
background
#FEFEFB
surface
#FCFCF1
border
#D5D5CB
text
#151509
muted
#84847D

Preview Lab

Preview with #BAD028

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

Preview Lab → · Contrast checker → · Palette generator →

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