#B2C740#B2C740

#B2C740 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 78.9% C 0.158 H 117.8°. Best body text is #000000 at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#B2C740
RGBrgb(178, 199, 64)
HSLhsl(69, 55%, 52%)
HSVhsv(69, 68%, 78%)
CMYKcmyk(10.6%, 0%, 67.8%, 22%)
CIE-LABlab(76.49, -24.86, 62.15)
CIE-LCHlch(76.49, 66.94, 111.80°)
OKLaboklab(78.88% -0.0737 0.1397)
OKLCHoklch(78.88% 0.158 117.8)
XYZxyz(39.7098, 50.6824, 12.5403)
Luminance0.5068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C740 #5540C7
analogous
#C79940 #B2C740 #6FC740
triadic
#B2C740 #40B2C7 #C740B2
tetradic
#B2C740 #40C799 #5540C7 #C7406F
square
#B2C740 #40C799 #5540C7 #C7406F
split-complementary
#B2C740 #406FC7 #9940C7
monochromatic
#616D20 #8B9C2E #B2C740 #C5D56F #D8E39F

Accessibility & contrast

On white

1.89
#B2C740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.14
#B2C740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C740
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C740#FFFFFF#000000##000000
##B2C7401.001.8911.1411.14
#FFFFFF1.891.0021.0021.00
#00000011.1421.001.001.00
##00000011.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#D2BD4A
Tritanopia (blue-blind)
#BDBCAC
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b2c740;
/* rgb */ color: rgb(178, 199, 64);
/* oklch */ color: oklch(78.9% 0.158 117.8);
Tailwind
colors: {
  custom: {
    50: '#ccd87c',
    500: '#b2c740',
    950: '#000000',
  },
}
SCSS
$custom: #b2c740;
$custom-light: #ccd87c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c740",
  "rgb": {
    "r": 178,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 69.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.78877,
    "c": 0.15799,
    "h": 117.8
  },
  "luminance": 0.50682
}

Semantic roles & 50–950 ramp

primary
#B2C740
secondary
#3F3576
accent
#4ADE61
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B2C740

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

Preview Lab → · Contrast checker → · Palette generator →

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