#B2C040#B2C040

#B2C040 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.3% C 0.150 H 115.3°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#B2C040
RGBrgb(178, 192, 64)
HSLhsl(67, 50%, 50%)
HSVhsv(67, 67%, 75%)
CMYKcmyk(7.3%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.53, -21.44, 60.16)
CIE-LCHlch(74.53, 63.86, 109.61°)
OKLaboklab(77.31% -0.0642 0.1355)
OKLCHoklch(77.31% 0.15 115.3)
XYZxyz(38.1361, 47.5350, 12.0157)
Luminance0.4753 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C040 #4E40C0
analogous
#C08E40 #B2C040 #72C040
triadic
#B2C040 #40B2C0 #C040B2
tetradic
#B2C040 #40C08E #4E40C0 #C04072
square
#B2C040 #40C08E #4E40C0 #C04072
split-complementary
#B2C040 #4072C0 #8E40C0
monochromatic
#5D6421 #889230 #B2C040 #C5CF6E #D7DE9C

Accessibility & contrast

On white

2.00
#B2C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#B2C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C040
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C040#FFFFFF#000000##000000
##B2C0401.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#CCB849
Tritanopia (blue-blind)
#BDB5A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #b2c040;
/* rgb */ color: rgb(178, 192, 64);
/* oklch */ color: oklch(77.3% 0.150 115.3);
Tailwind
colors: {
  custom: {
    50: '#ccd27c',
    500: '#b2c040',
    950: '#000000',
  },
}
SCSS
$custom: #b2c040;
$custom-light: #ccd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c040",
  "rgb": {
    "r": 178,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 66.563,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77307,
    "c": 0.14996,
    "h": 115.3
  },
  "luminance": 0.47534
}

Semantic roles & 50–950 ramp

primary
#B2C040
secondary
#9891CB
accent
#4EDA5D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #B2C040

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

Preview Lab → · Contrast checker → · Palette generator →

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