#B9C628#B9C628

#B9C628 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.0% C 0.168 H 114.6°. Best body text is #000000 at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#B9C628
RGBrgb(185, 198, 40)
HSLhsl(65, 66%, 47%)
HSVhsv(65, 80%, 78%)
CMYKcmyk(6.6%, 0%, 79.8%, 22.4%)
CIE-LABlab(76.59, -22.59, 70.36)
CIE-LCHlch(76.59, 73.90, 107.80°)
OKLaboklab(79.05% -0.0698 0.1528)
OKLCHoklch(79.05% 0.168 114.6)
XYZxyz(40.5859, 50.8564, 9.6853)
Luminance0.5086 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9C628 #3528C6
analogous
#C68428 #B9C628 #6AC628
triadic
#B9C628 #28B9C6 #C628B9
tetradic
#B9C628 #28C684 #3528C6 #C6286A
square
#B9C628 #28C684 #3528C6 #C6286A
split-complementary
#B9C628 #286AC6 #8428C6
monochromatic
#5A6013 #89931E #B9C628 #D0DC50 #DEE683

Accessibility & contrast

On white

1.88
#B9C628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.17
#B9C628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9C628
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9C628#FFFFFF#000000##000000
##B9C6281.001.8811.1711.17
#FFFFFF1.881.0021.0021.00
#00000011.1721.001.001.00
##00000011.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#D4BE38
Tritanopia (blue-blind)
#C6BAA9
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b9c628;
/* rgb */ color: rgb(185, 198, 40);
/* oklch */ color: oklch(79.0% 0.168 114.6);
Tailwind
colors: {
  custom: {
    50: '#d2d771',
    500: '#b9c628',
    950: '#000000',
  },
}
SCSS
$custom: #b9c628;
$custom-light: #d2d771;
$custom-dark: #000000;
JSON
{
  "hex": "#b9c628",
  "rgb": {
    "r": 185,
    "g": 198,
    "b": 40
  },
  "hsl": {
    "h": 64.937,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.79048,
    "c": 0.16803,
    "h": 114.6
  },
  "luminance": 0.50856
}

Semantic roles & 50–950 ramp

primary
#B9C628
secondary
#2D276B
accent
#3EE94D
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #B9C628

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

Preview Lab → · Contrast checker → · Palette generator →

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