#B2B845#B2B845

#B2B845 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.6% C 0.137 H 112.1°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#B2B845
RGBrgb(178, 184, 69)
HSLhsl(63, 45%, 50%)
HSVhsv(63, 63%, 72%)
CMYKcmyk(3.3%, 0%, 62.5%, 27.8%)
CIE-LABlab(72.35, -17.12, 55.83)
CIE-LCHlch(72.35, 58.39, 107.05°)
OKLaboklab(75.57% -0.0516 0.1271)
OKLCHoklch(75.57% 0.137 112.1)
XYZxyz(36.5758, 44.1764, 12.2292)
Luminance0.4418 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B845 #4B45B8
analogous
#B88445 #B2B845 #79B845
triadic
#B2B845 #45B2B8 #B845B2
tetradic
#B2B845 #45B884 #4B45B8 #B84579
square
#B2B845 #45B884 #4B45B8 #B84579
split-complementary
#B2B845 #4579B8 #8445B8
monochromatic
#5C5F24 #878B34 #B2B845 #C5CA71 #D7DA9D

Accessibility & contrast

On white

2.14
#B2B845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#B2B845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B845
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B845#FFFFFF#000000##000000
##B2B8451.002.149.849.84
#FFFFFF2.141.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B037
Deuteranopia (green-blind)
#C6B34C
Tritanopia (blue-blind)
#BDADA0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b2b845;
/* rgb */ color: rgb(178, 184, 69);
/* oklch */ color: oklch(75.6% 0.137 112.1);
Tailwind
colors: {
  custom: {
    50: '#cccd7e',
    500: '#b2b845',
    950: '#000000',
  },
}
SCSS
$custom: #b2b845;
$custom-light: #cccd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b845",
  "rgb": {
    "r": 178,
    "g": 184,
    "b": 69
  },
  "hsl": {
    "h": 63.13,
    "s": 45.455,
    "l": 49.608
  },
  "oklch": {
    "l": 0.7557,
    "c": 0.1372,
    "h": 112.1
  },
  "luminance": 0.44176
}

Semantic roles & 50–950 ramp

primary
#B2B845
secondary
#9592C7
accent
#53D559
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B845

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

Preview Lab → · Contrast checker → · Palette generator →

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