#B2B940#B2B940

#B2B940 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.7% C 0.142 H 112.5°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#B2B940
RGBrgb(178, 185, 64)
HSLhsl(63, 49%, 49%)
HSVhsv(63, 65%, 73%)
CMYKcmyk(3.8%, 0%, 65.4%, 27.5%)
CIE-LABlab(72.58, -17.95, 58.15)
CIE-LCHlch(72.58, 60.86, 107.15°)
OKLaboklab(75.75% -0.0544 0.1313)
OKLCHoklch(75.75% 0.142 112.5)
XYZxyz(36.6355, 44.5339, 11.5155)
Luminance0.4453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B940 #4740B9
analogous
#B98440 #B2B940 #76B940
triadic
#B2B940 #40B2B9 #B940B2
tetradic
#B2B940 #40B984 #4740B9 #B94076
square
#B2B940 #40B984 #4740B9 #B94076
split-complementary
#B2B940 #4076B9 #8440B9
monochromatic
#5B5E21 #868C30 #B2B940 #C6CC6B #D7DB98

Accessibility & contrast

On white

2.12
#B2B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#B2B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B940
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B940#FFFFFF#000000##000000
##B2B9401.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C7B348
Tritanopia (blue-blind)
#BEAEA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b2b940;
/* rgb */ color: rgb(178, 185, 64);
/* oklch */ color: oklch(75.7% 0.142 112.5);
Tailwind
colors: {
  custom: {
    50: '#cccd7b',
    500: '#b2b940',
    950: '#000000',
  },
}
SCSS
$custom: #b2b940;
$custom-light: #cccd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b940",
  "rgb": {
    "r": 178,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 63.471,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75747,
    "c": 0.14213,
    "h": 112.5
  },
  "luminance": 0.44533
}

Semantic roles & 50–950 ramp

primary
#B2B940
secondary
#918EC7
accent
#50D858
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B940

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

Preview Lab → · Contrast checker → · Palette generator →

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