#B2B040#B2B040

#B2B040 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.8% C 0.133 H 108.3°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#B2B040
RGBrgb(178, 176, 64)
HSLhsl(59, 47%, 47%)
HSVhsv(59, 64%, 70%)
CMYKcmyk(0%, 1.1%, 64%, 30.2%)
CIE-LABlab(70.10, -13.37, 55.56)
CIE-LCHlch(70.10, 57.14, 103.53°)
OKLaboklab(73.76% -0.0415 0.1258)
OKLCHoklch(73.76% 0.133 108.3)
XYZxyz(34.8120, 40.8869, 10.9077)
Luminance0.4089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B040 #4042B2
analogous
#B27740 #B2B040 #7BB240
triadic
#B2B040 #40B2B0 #B040B2
tetradic
#B2B040 #40B277 #4042B2 #B2407B
square
#B2B040 #40B277 #4042B2 #B2407B
split-complementary
#B2B040 #407BB2 #7740B2
monochromatic
#585720 #858330 #B2B040 #C8C767 #D8D794

Accessibility & contrast

On white

2.29
#B2B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#B2B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B040
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B040#FFFFFF#000000##000000
##B2B0401.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA932
Deuteranopia (green-blind)
#C0AD47
Tritanopia (blue-blind)
#BEA599
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2b040;
/* rgb */ color: rgb(178, 176, 64);
/* oklch */ color: oklch(73.8% 0.133 108.3);
Tailwind
colors: {
  custom: {
    50: '#ccc77a',
    500: '#b2b040',
    950: '#000000',
  },
}
SCSS
$custom: #b2b040;
$custom-light: #ccc77a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b040",
  "rgb": {
    "r": 178,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 58.947,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.73761,
    "c": 0.13251,
    "h": 108.3
  },
  "luminance": 0.40886
}

Semantic roles & 50–950 ramp

primary
#B2B040
secondary
#8A8BC4
accent
#53D751
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B040

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

Preview Lab → · Contrast checker → · Palette generator →

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