#B2C042#B2C042

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

Color values

HEX#B2C042
RGBrgb(178, 192, 66)
HSLhsl(67, 50%, 51%)
HSVhsv(67, 66%, 75%)
CMYKcmyk(7.3%, 0%, 65.6%, 24.7%)
CIE-LABlab(74.55, -21.31, 59.38)
CIE-LCHlch(74.55, 63.09, 109.75°)
OKLaboklab(77.32% -0.0636 0.1342)
OKLCHoklch(77.32% 0.149 115.4)
XYZxyz(38.1940, 47.5582, 12.3208)
Luminance0.4756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C042 #5042C0
analogous
#C08F42 #B2C042 #73C042
triadic
#B2C042 #42B2C0 #C042B2
tetradic
#B2C042 #42C08F #5042C0 #C04273
square
#B2C042 #42C08F #5042C0 #C04273
split-complementary
#B2C042 #4273C0 #8F42C0
monochromatic
#5E6622 #899431 #B2C042 #C5CF70 #D7DF9E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2C042#FFFFFF#000000##000000
##B2C0421.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)
#CDB731
Deuteranopia (green-blind)
#CCB84B
Tritanopia (blue-blind)
#BDB5A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #b2c042;
/* rgb */ color: rgb(178, 192, 66);
/* oklch */ color: oklch(77.3% 0.149 115.4);
Tailwind
colors: {
  custom: {
    50: '#ccd27d',
    500: '#b2c042',
    950: '#000000',
  },
}
SCSS
$custom: #b2c042;
$custom-light: #ccd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c042",
  "rgb": {
    "r": 178,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 66.667,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77323,
    "c": 0.14852,
    "h": 115.4
  },
  "luminance": 0.47558
}

Semantic roles & 50–950 ramp

primary
#B2C042
secondary
#9993CB
accent
#4EDA5E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #B2C042

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

Preview Lab → · Contrast checker → · Palette generator →

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