#B2B838#B2B838

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

Color values

HEX#B2B838
RGBrgb(178, 184, 56)
HSLhsl(63, 53%, 47%)
HSVhsv(63, 70%, 72%)
CMYKcmyk(3.3%, 0%, 69.6%, 27.8%)
CIE-LABlab(72.25, -17.90, 60.93)
CIE-LCHlch(72.25, 63.51, 106.38°)
OKLaboklab(75.46% -0.0551 0.1359)
OKLCHoklch(75.46% 0.147 112.1)
XYZxyz(36.2155, 44.0323, 10.3320)
Luminance0.4403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B838 #3E38B8
analogous
#B87E38 #B2B838 #72B838
triadic
#B2B838 #38B2B8 #B838B2
tetradic
#B2B838 #38B87E #3E38B8 #B83872
square
#B2B838 #38B87E #3E38B8 #B83872
split-complementary
#B2B838 #3872B8 #7E38B8
monochromatic
#575A1B #85892A #B2B838 #C9CE5F #D9DD8E

Accessibility & contrast

On white

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

On black

9.81
#B2B838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B838
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B838#FFFFFF#000000##000000
##B2B8381.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2b838;
/* rgb */ color: rgb(178, 184, 56);
/* oklch */ color: oklch(75.5% 0.147 112.1);
Tailwind
colors: {
  custom: {
    50: '#cccd77',
    500: '#b2b838',
    950: '#000000',
  },
}
SCSS
$custom: #b2b838;
$custom-light: #cccd77;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b838",
  "rgb": {
    "r": 178,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 62.813,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75462,
    "c": 0.14662,
    "h": 112.1
  },
  "luminance": 0.44031
}

Semantic roles & 50–950 ramp

primary
#B2B838
secondary
#8885C7
accent
#4BDD52
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B838

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

Preview Lab → · Contrast checker → · Palette generator →

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