#B4C840#B4C840

#B4C840 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.3% C 0.158 H 117.4°. Best body text is #000000 at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#B4C840
RGBrgb(180, 200, 64)
HSLhsl(69, 55%, 52%)
HSVhsv(69, 68%, 78%)
CMYKcmyk(10%, 0%, 68%, 21.6%)
CIE-LABlab(76.91, -24.53, 62.63)
CIE-LCHlch(76.91, 67.26, 111.39°)
OKLaboklab(79.25% -0.0729 0.1407)
OKLCHoklch(79.25% 0.158 117.4)
XYZxyz(40.4030, 51.3825, 12.6389)
Luminance0.5138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C840 #5440C8
analogous
#C89840 #B4C840 #70C840
triadic
#B4C840 #40B4C8 #C840B4
tetradic
#B4C840 #40C898 #5440C8 #C84070
square
#B4C840 #40C898 #5440C8 #C84070
split-complementary
#B4C840 #4070C8 #9840C8
monochromatic
#626E20 #8D9D2D #B4C840 #C7D670 #D9E39F

Accessibility & contrast

On white

1.86
#B4C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.28
#B4C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C840
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C840#FFFFFF#000000##000000
##B4C8401.001.8611.2811.28
#FFFFFF1.861.0021.0021.00
#00000011.2821.001.001.00
##00000011.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2B
Deuteranopia (green-blind)
#D3BF4A
Tritanopia (blue-blind)
#BFBDAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b4c840;
/* rgb */ color: rgb(180, 200, 64);
/* oklch */ color: oklch(79.3% 0.158 117.4);
Tailwind
colors: {
  custom: {
    50: '#ced87d',
    500: '#b4c840',
    950: '#000000',
  },
}
SCSS
$custom: #b4c840;
$custom-light: #ced87d;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c840",
  "rgb": {
    "r": 180,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 68.824,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79253,
    "c": 0.15845,
    "h": 117.4
  },
  "luminance": 0.51382
}

Semantic roles & 50–950 ramp

primary
#B4C840
secondary
#3F3577
accent
#49DF5F
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B4C840

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

Preview Lab → · Contrast checker → · Palette generator →

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