#B2C338#B2C338

#B2C338 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 77.9% C 0.159 H 116.3°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#B2C338
RGBrgb(178, 195, 56)
HSLhsl(67, 55%, 49%)
HSVhsv(67, 71%, 76%)
CMYKcmyk(8.7%, 0%, 71.3%, 23.5%)
CIE-LABlab(75.32, -23.36, 63.94)
CIE-LCHlch(75.32, 68.08, 110.07°)
OKLaboklab(77.92% -0.0703 0.1422)
OKLCHoklch(77.92% 0.159 116.3)
XYZxyz(38.5900, 48.7813, 11.1234)
Luminance0.4878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C338 #4938C3
analogous
#C38F38 #B2C338 #6DC338
triadic
#B2C338 #38B2C3 #C338B2
tetradic
#B2C338 #38C38F #4938C3 #C3386D
square
#B2C338 #38C38F #4938C3 #C3386D
split-complementary
#B2C338 #386DC3 #8F38C3
monochromatic
#5B641D #87932A #B2C338 #C5D365 #D7E195

Accessibility & contrast

On white

1.95
#B2C338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#B2C338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C338
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C338#FFFFFF#000000##000000
##B2C3381.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B91F
Deuteranopia (green-blind)
#CFBA43
Tritanopia (blue-blind)
#BDB8A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b2c338;
/* rgb */ color: rgb(178, 195, 56);
/* oklch */ color: oklch(77.9% 0.159 116.3);
Tailwind
colors: {
  custom: {
    50: '#ccd578',
    500: '#b2c338',
    950: '#000000',
  },
}
SCSS
$custom: #b2c338;
$custom-light: #ccd578;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c338",
  "rgb": {
    "r": 178,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 67.338,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.77919,
    "c": 0.15864,
    "h": 116.3
  },
  "luminance": 0.48781
}

Semantic roles & 50–950 ramp

primary
#B2C338
secondary
#938BCC
accent
#49DF5B
background
#FDFDF7
surface
#FAFAEE
border
#D3D3C9
text
#141409
muted
#83837B

Preview Lab

Preview with #B2C338

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

Preview Lab → · Contrast checker → · Palette generator →

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