#B4C042#B4C042

#B4C042 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.5% C 0.148 H 114.5°. Best body text is #000000 at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#B4C042
RGBrgb(180, 192, 66)
HSLhsl(66, 50%, 51%)
HSVhsv(66, 66%, 75%)
CMYKcmyk(6.2%, 0%, 65.6%, 24.7%)
CIE-LABlab(74.70, -20.48, 59.58)
CIE-LCHlch(74.70, 63.00, 108.97°)
OKLaboklab(77.48% -0.0614 0.1346)
OKLCHoklch(77.48% 0.148 114.5)
XYZxyz(38.6564, 47.7966, 12.3425)
Luminance0.4780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C042 #4E42C0
analogous
#C08D42 #B4C042 #75C042
triadic
#B4C042 #42B4C0 #C042B4
tetradic
#B4C042 #42C08D #4E42C0 #C04275
square
#B4C042 #42C08D #4E42C0 #C04275
split-complementary
#B4C042 #4275C0 #8D42C0
monochromatic
#5F6622 #8A9431 #B4C042 #C6CF70 #D8DF9E

Accessibility & contrast

On white

1.99
#B4C042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.56
#B4C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C042
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C042#FFFFFF#000000##000000
##B4C0421.001.9910.5610.56
#FFFFFF1.991.0021.0021.00
#00000010.5621.001.001.00
##00000010.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB731
Deuteranopia (green-blind)
#CDB94B
Tritanopia (blue-blind)
#BFB5A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b4c042;
/* rgb */ color: rgb(180, 192, 66);
/* oklch */ color: oklch(77.5% 0.148 114.5);
Tailwind
colors: {
  custom: {
    50: '#cdd27d',
    500: '#b4c042',
    950: '#000000',
  },
}
SCSS
$custom: #b4c042;
$custom-light: #cdd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c042",
  "rgb": {
    "r": 180,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 65.714,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77482,
    "c": 0.14793,
    "h": 114.5
  },
  "luminance": 0.47796
}

Semantic roles & 50–950 ramp

primary
#B4C042
secondary
#9893CB
accent
#4EDA5C
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B4C042

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

Preview Lab → · Contrast checker → · Palette generator →

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