#B2C938#B2C938

#B2C938 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.3% C 0.165 H 118.3°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#B2C938
RGBrgb(178, 201, 56)
HSLhsl(70, 57%, 50%)
HSVhsv(70, 72%, 79%)
CMYKcmyk(11.4%, 0%, 72.1%, 21.2%)
CIE-LABlab(77.00, -26.27, 65.58)
CIE-LCHlch(77.00, 70.64, 111.83°)
OKLaboklab(79.27% -0.0784 0.1457)
OKLCHoklch(79.27% 0.165 118.3)
XYZxyz(39.9614, 51.5241, 11.5806)
Luminance0.5152 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C938 #4F38C9
analogous
#C99738 #B2C938 #6AC938
triadic
#B2C938 #38B2C9 #C938B2
tetradic
#B2C938 #38C997 #4F38C9 #C9386A
square
#B2C938 #38C997 #4F38C9 #C9386A
split-complementary
#B2C938 #386AC9 #9738C9
monochromatic
#5E6A1D #889A2A #B2C938 #C5D668 #D7E398

Accessibility & contrast

On white

1.86
#B2C938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.30
#B2C938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C938
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C938#FFFFFF#000000##000000
##B2C9381.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE1C
Deuteranopia (green-blind)
#D4BF44
Tritanopia (blue-blind)
#BDBEAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b2c938;
/* rgb */ color: rgb(178, 201, 56);
/* oklch */ color: oklch(79.3% 0.165 118.3);
Tailwind
colors: {
  custom: {
    50: '#cdd978',
    500: '#b2c938',
    950: '#000000',
  },
}
SCSS
$custom: #b2c938;
$custom-light: #cdd978;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c938",
  "rgb": {
    "r": 178,
    "g": 201,
    "b": 56
  },
  "hsl": {
    "h": 69.517,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.7927,
    "c": 0.16539,
    "h": 118.3
  },
  "luminance": 0.51524
}

Semantic roles & 50–950 ramp

primary
#B2C938
secondary
#3C3174
accent
#47E160
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B2C938

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

Preview Lab → · Contrast checker → · Palette generator →

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