#B4C940#B4C940

#B4C940 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.5% C 0.160 H 117.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#B4C940
RGBrgb(180, 201, 64)
HSLhsl(69, 56%, 52%)
HSVhsv(69, 68%, 79%)
CMYKcmyk(10.4%, 0%, 68.2%, 21.2%)
CIE-LABlab(77.19, -25.01, 62.91)
CIE-LCHlch(77.19, 67.70, 111.68°)
OKLaboklab(79.48% -0.0743 0.1413)
OKLCHoklch(79.48% 0.16 117.7)
XYZxyz(40.6353, 51.8472, 12.7163)
Luminance0.5185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C940 #5540C9
analogous
#C99A40 #B4C940 #70C940
triadic
#B4C940 #40B4C9 #C940B4
tetradic
#B4C940 #40C99A #5540C9 #C94070
square
#B4C940 #40C99A #5540C9 #C94070
split-complementary
#B4C940 #4070C9 #9A40C9
monochromatic
#636F1F #8D9F2D #B4C940 #C7D670 #D9E49F

Accessibility & contrast

On white

1.85
#B4C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#B4C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C940
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C940#FFFFFF#000000##000000
##B4C9401.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#D4BF4A
Tritanopia (blue-blind)
#BFBEAE
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #b4c940;
/* rgb */ color: rgb(180, 201, 64);
/* oklch */ color: oklch(79.5% 0.160 117.7);
Tailwind
colors: {
  custom: {
    50: '#ced97d',
    500: '#b4c940',
    950: '#000000',
  },
}
SCSS
$custom: #b4c940;
$custom-light: #ced97d;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c940",
  "rgb": {
    "r": 180,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 69.197,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79478,
    "c": 0.1596,
    "h": 117.7
  },
  "luminance": 0.51847
}

Semantic roles & 50–950 ramp

primary
#B4C940
secondary
#3F3578
accent
#49DF60
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B4C940

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

Preview Lab → · Contrast checker → · Palette generator →

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