#B2B840#B2B840

#B2B840 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.5% C 0.141 H 112.1°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#B2B840
RGBrgb(178, 184, 64)
HSLhsl(63, 48%, 49%)
HSVhsv(63, 65%, 72%)
CMYKcmyk(3.3%, 0%, 65.2%, 27.8%)
CIE-LABlab(72.31, -17.44, 57.86)
CIE-LCHlch(72.31, 60.43, 106.78°)
OKLaboklab(75.53% -0.053 0.1307)
OKLCHoklch(75.53% 0.141 112.1)
XYZxyz(36.4270, 44.1169, 11.4460)
Luminance0.4412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B840 #4640B8
analogous
#B88240 #B2B840 #76B840
triadic
#B2B840 #40B2B8 #B840B2
tetradic
#B2B840 #40B882 #4640B8 #B84076
square
#B2B840 #40B882 #4640B8 #B84076
split-complementary
#B2B840 #4076B8 #8240B8
monochromatic
#5A5D20 #868B30 #B2B840 #C6CB6A #D8DB97

Accessibility & contrast

On white

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

On black

9.82
#B2B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B840
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B840#FFFFFF#000000##000000
##B2B8401.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#C6B348
Tritanopia (blue-blind)
#BEAD9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b2b840;
/* rgb */ color: rgb(178, 184, 64);
/* oklch */ color: oklch(75.5% 0.141 112.1);
Tailwind
colors: {
  custom: {
    50: '#cccd7b',
    500: '#b2b840',
    950: '#000000',
  },
}
SCSS
$custom: #b2b840;
$custom-light: #cccd7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b840",
  "rgb": {
    "r": 178,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 63,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.75526,
    "c": 0.14103,
    "h": 112.1
  },
  "luminance": 0.44116
}

Semantic roles & 50–950 ramp

primary
#B2B840
secondary
#908DC7
accent
#50D857
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B840

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

Preview Lab → · Contrast checker → · Palette generator →

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