#B4C838#B4C838

#B4C838 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.2% C 0.164 H 117.2°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#B4C838
RGBrgb(180, 200, 56)
HSLhsl(68, 57%, 50%)
HSVhsv(68, 72%, 78%)
CMYKcmyk(10%, 0%, 72%, 21.6%)
CIE-LABlab(76.86, -24.96, 65.50)
CIE-LCHlch(76.86, 70.09, 110.86°)
OKLaboklab(79.2% -0.0749 0.1454)
OKLCHoklch(79.2% 0.164 117.2)
XYZxyz(40.1914, 51.2978, 11.5248)
Luminance0.5130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C838 #4C38C8
analogous
#C89438 #B4C838 #6CC838
triadic
#B4C838 #38B4C8 #C838B4
tetradic
#B4C838 #38C894 #4C38C8 #C8386C
square
#B4C838 #38C894 #4C38C8 #C8386C
split-complementary
#B4C838 #386CC8 #9438C8
monochromatic
#5E691D #89992A #B4C838 #C6D568 #D8E398

Accessibility & contrast

On white

1.87
#B4C838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#B4C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C838
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C838#FFFFFF#000000##000000
##B4C8381.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BD1D
Deuteranopia (green-blind)
#D4BF44
Tritanopia (blue-blind)
#BFBDAC
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b4c838;
/* rgb */ color: rgb(180, 200, 56);
/* oklch */ color: oklch(79.2% 0.164 117.2);
Tailwind
colors: {
  custom: {
    50: '#ced878',
    500: '#b4c838',
    950: '#000000',
  },
}
SCSS
$custom: #b4c838;
$custom-light: #ced878;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c838",
  "rgb": {
    "r": 180,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 68.333,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.79196,
    "c": 0.16356,
    "h": 117.2
  },
  "luminance": 0.51297
}

Semantic roles & 50–950 ramp

primary
#B4C838
secondary
#3B3273
accent
#48E05D
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#14140A
muted
#83837D

Preview Lab

Preview with #B4C838

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

Preview Lab → · Contrast checker → · Palette generator →

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