#BAD042#BAD042

#BAD042 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.5% C 0.164 H 117.8°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#BAD042
RGBrgb(186, 208, 66)
HSLhsl(69, 60%, 54%)
HSVhsv(69, 68%, 82%)
CMYKcmyk(10.6%, 0%, 68.3%, 18.4%)
CIE-LABlab(79.58, -25.82, 64.71)
CIE-LCHlch(79.58, 69.67, 111.75°)
OKLaboklab(81.51% -0.0767 0.1452)
OKLCHoklch(81.51% 0.164 117.8)
XYZxyz(43.7899, 55.9446, 13.6447)
Luminance0.5594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAD042 #5842D0
analogous
#D09F42 #BAD042 #73D042
triadic
#BAD042 #42BAD0 #D042BA
tetradic
#BAD042 #42D09F #5842D0 #D04273
square
#BAD042 #42D09F #5842D0 #D04273
split-complementary
#BAD042 #4273D0 #9F42D0
monochromatic
#6B791E #97AA2A #BAD042 #CCDC73 #DEE8A4

Accessibility & contrast

On white

1.72
#BAD042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#BAD042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAD042
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAD042#FFFFFF#000000##000000
##BAD0421.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC52C
Deuteranopia (green-blind)
#DBC64D
Tritanopia (blue-blind)
#C5C5B4
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #bad042;
/* rgb */ color: rgb(186, 208, 66);
/* oklch */ color: oklch(81.5% 0.164 117.8);
Tailwind
colors: {
  custom: {
    50: '#d2de7f',
    500: '#bad042',
    950: '#000000',
  },
}
SCSS
$custom: #bad042;
$custom-light: #d2de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#bad042",
  "rgb": {
    "r": 186,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 69.296,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.81513,
    "c": 0.16421,
    "h": 117.8
  },
  "luminance": 0.55944
}

Semantic roles & 50–950 ramp

primary
#BAD042
secondary
#413581
accent
#44E35D
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #BAD042

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

Preview Lab → · Contrast checker → · Palette generator →

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