#B2B945#B2B945

#B2B945 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.8% C 0.138 H 112.5°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#B2B945
RGBrgb(178, 185, 69)
HSLhsl(64, 46%, 50%)
HSVhsv(64, 63%, 73%)
CMYKcmyk(3.8%, 0%, 62.7%, 27.5%)
CIE-LABlab(72.62, -17.63, 56.12)
CIE-LCHlch(72.62, 58.82, 107.44°)
OKLaboklab(75.79% -0.053 0.1278)
OKLCHoklch(75.79% 0.138 112.5)
XYZxyz(36.7842, 44.5933, 12.2987)
Luminance0.4459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B945 #4C45B9
analogous
#B98645 #B2B945 #78B945
triadic
#B2B945 #45B2B9 #B945B2
tetradic
#B2B945 #45B986 #4C45B9 #B94578
square
#B2B945 #45B986 #4C45B9 #B94578
split-complementary
#B2B945 #4578B9 #8645B9
monochromatic
#5C6024 #878C34 #B2B945 #C5CA71 #D7DB9E

Accessibility & contrast

On white

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

On black

9.92
#B2B945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B945
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B945#FFFFFF#000000##000000
##B2B9451.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B136
Deuteranopia (green-blind)
#C6B44C
Tritanopia (blue-blind)
#BDAEA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b2b945;
/* rgb */ color: rgb(178, 185, 69);
/* oklch */ color: oklch(75.8% 0.138 112.5);
Tailwind
colors: {
  custom: {
    50: '#cccd7e',
    500: '#b2b945',
    950: '#000000',
  },
}
SCSS
$custom: #b2b945;
$custom-light: #cccd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b945",
  "rgb": {
    "r": 178,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 63.621,
    "s": 45.669,
    "l": 49.804
  },
  "oklch": {
    "l": 0.75792,
    "c": 0.13832,
    "h": 112.5
  },
  "luminance": 0.44593
}

Semantic roles & 50–950 ramp

primary
#B2B945
secondary
#9693C7
accent
#52D55A
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B945

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

Preview Lab → · Contrast checker → · Palette generator →

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