#B2C340#B2C340

#B2C340 is a light, vivid yellow. Relative luminance 0.489; OKLCH L 78.0% C 0.153 H 116.4°. Best body text is #000000 at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#B2C340
RGBrgb(178, 195, 64)
HSLhsl(68, 52%, 51%)
HSVhsv(68, 67%, 76%)
CMYKcmyk(8.7%, 0%, 67.2%, 23.5%)
CIE-LABlab(75.37, -22.91, 61.01)
CIE-LCHlch(75.37, 65.17, 110.58°)
OKLaboklab(77.98% -0.0683 0.1373)
OKLCHoklch(77.98% 0.153 116.4)
XYZxyz(38.8015, 48.8659, 12.2375)
Luminance0.4886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C340 #5140C3
analogous
#C39240 #B2C340 #70C340
triadic
#B2C340 #40B2C3 #C340B2
tetradic
#B2C340 #40C392 #5140C3 #C34070
square
#B2C340 #40C392 #5140C3 #C34070
split-complementary
#B2C340 #4070C3 #9240C3
monochromatic
#5F6821 #89972F #B2C340 #C5D26F #D8E09D

Accessibility & contrast

On white

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

On black

10.77
#B2C340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C340
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C340#FFFFFF#000000##000000
##B2C3401.001.9510.7710.77
#FFFFFF1.951.0021.0021.00
#00000010.7721.001.001.00
##00000010.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#CFBB4A
Tritanopia (blue-blind)
#BDB8A9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #b2c340;
/* rgb */ color: rgb(178, 195, 64);
/* oklch */ color: oklch(78.0% 0.153 116.4);
Tailwind
colors: {
  custom: {
    50: '#ccd57c',
    500: '#b2c340',
    950: '#000000',
  },
}
SCSS
$custom: #b2c340;
$custom-light: #ccd57c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c340",
  "rgb": {
    "r": 178,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 67.786,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.77978,
    "c": 0.15338,
    "h": 116.4
  },
  "luminance": 0.48865
}

Semantic roles & 50–950 ramp

primary
#B2C340
secondary
#9A92CC
accent
#4CDC5F
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #B2C340

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

Preview Lab → · Contrast checker → · Palette generator →

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