#B4C842#B4C842

#B4C842 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.3% C 0.157 H 117.4°. Best body text is #000000 at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#B4C842
RGBrgb(180, 200, 66)
HSLhsl(69, 55%, 52%)
HSVhsv(69, 67%, 78%)
CMYKcmyk(10%, 0%, 67%, 21.6%)
CIE-LABlab(76.92, -24.41, 61.87)
CIE-LCHlch(76.92, 66.51, 111.53°)
OKLaboklab(79.27% -0.0724 0.1394)
OKLCHoklch(79.27% 0.157 117.4)
XYZxyz(40.4609, 51.4056, 12.9440)
Luminance0.5141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C842 #5642C8
analogous
#C89942 #B4C842 #71C842
triadic
#B4C842 #42B4C8 #C842B4
tetradic
#B4C842 #42C899 #5642C8 #C84271
square
#B4C842 #42C899 #5642C8 #C84271
split-complementary
#B4C842 #4271C8 #9942C8
monochromatic
#636F20 #8E9F2E #B4C842 #C7D671 #DAE4A1

Accessibility & contrast

On white

1.86
#B4C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.28
#B4C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C842
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C842#FFFFFF#000000##000000
##B4C8421.001.8611.2811.28
#FFFFFF1.861.0021.0021.00
#00000011.2821.001.001.00
##00000011.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2E
Deuteranopia (green-blind)
#D3BF4C
Tritanopia (blue-blind)
#BFBDAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b4c842;
/* rgb */ color: rgb(180, 200, 66);
/* oklch */ color: oklch(79.3% 0.157 117.4);
Tailwind
colors: {
  custom: {
    50: '#ced87e',
    500: '#b4c842',
    950: '#000000',
  },
}
SCSS
$custom: #b4c842;
$custom-light: #ced87e;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c842",
  "rgb": {
    "r": 180,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 68.955,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79269,
    "c": 0.15708,
    "h": 117.4
  },
  "luminance": 0.51405
}

Semantic roles & 50–950 ramp

primary
#B4C842
secondary
#403679
accent
#4ADE60
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B4C842

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

Preview Lab → · Contrast checker → · Palette generator →

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