#B2C538#B2C538

#B2C538 is a light, vivid yellow. Relative luminance 0.497; OKLCH L 78.4% C 0.161 H 117.0°. Best body text is #000000 at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#B2C538
RGBrgb(178, 197, 56)
HSLhsl(68, 56%, 50%)
HSVhsv(68, 72%, 77%)
CMYKcmyk(9.6%, 0%, 71.6%, 22.7%)
CIE-LABlab(75.87, -24.34, 64.49)
CIE-LCHlch(75.87, 68.93, 110.67°)
OKLaboklab(78.37% -0.073 0.1434)
OKLCHoklch(78.37% 0.161 117)
XYZxyz(39.0411, 49.6835, 11.2738)
Luminance0.4968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C538 #4B38C5
analogous
#C59238 #B2C538 #6CC538
triadic
#B2C538 #38B2C5 #C538B2
tetradic
#B2C538 #38C592 #4B38C5 #C5386C
square
#B2C538 #38C592 #4B38C5 #C5386C
split-complementary
#B2C538 #386CC5 #9238C5
monochromatic
#5C661D #87952A #B2C538 #C5D467 #D7E196

Accessibility & contrast

On white

1.92
#B2C538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.94
#B2C538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C538
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C538#FFFFFF#000000##000000
##B2C5381.001.9210.9410.94
#FFFFFF1.921.0021.0021.00
#00000010.9421.001.001.00
##00000010.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1E
Deuteranopia (green-blind)
#D1BC44
Tritanopia (blue-blind)
#BDBAAA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #b2c538;
/* rgb */ color: rgb(178, 197, 56);
/* oklch */ color: oklch(78.4% 0.161 117.0);
Tailwind
colors: {
  custom: {
    50: '#ccd678',
    500: '#b2c538',
    950: '#000000',
  },
}
SCSS
$custom: #b2c538;
$custom-light: #ccd678;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c538",
  "rgb": {
    "r": 178,
    "g": 197,
    "b": 56
  },
  "hsl": {
    "h": 68.085,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.78369,
    "c": 0.16088,
    "h": 117
  },
  "luminance": 0.49683
}

Semantic roles & 50–950 ramp

primary
#B2C538
secondary
#958CCD
accent
#49DF5D
background
#FDFDF7
surface
#FAFAEE
border
#D3D3C9
text
#141409
muted
#83837B

Preview Lab

Preview with #B2C538

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

Preview Lab → · Contrast checker → · Palette generator →

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