#B4C938#B4C938

#B4C938 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.4% C 0.165 H 117.6°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#B4C938
RGBrgb(180, 201, 56)
HSLhsl(69, 57%, 50%)
HSVhsv(69, 72%, 79%)
CMYKcmyk(10.4%, 0%, 72.1%, 21.2%)
CIE-LABlab(77.14, -25.45, 65.77)
CIE-LCHlch(77.14, 70.52, 111.15°)
OKLaboklab(79.42% -0.0762 0.146)
OKLCHoklch(79.42% 0.165 117.6)
XYZxyz(40.4238, 51.7625, 11.6023)
Luminance0.5176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4C938 #4D38C9
analogous
#C99638 #B4C938 #6BC938
triadic
#B4C938 #38B4C9 #C938B4
tetradic
#B4C938 #38C996 #4D38C9 #C9386B
square
#B4C938 #38C996 #4D38C9 #C9386B
split-complementary
#B4C938 #386BC9 #9638C9
monochromatic
#5F6A1D #8A9A2A #B4C938 #C6D668 #D8E398

Accessibility & contrast

On white

1.85
#B4C938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#B4C938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4C938
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4C938#FFFFFF#000000##000000
##B4C9381.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4c938;
/* rgb */ color: rgb(180, 201, 56);
/* oklch */ color: oklch(79.4% 0.165 117.6);
Tailwind
colors: {
  custom: {
    50: '#ced979',
    500: '#b4c938',
    950: '#000000',
  },
}
SCSS
$custom: #b4c938;
$custom-light: #ced979;
$custom-dark: #000000;
JSON
{
  "hex": "#b4c938",
  "rgb": {
    "r": 180,
    "g": 201,
    "b": 56
  },
  "hsl": {
    "h": 68.69,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.79421,
    "c": 0.16468,
    "h": 117.6
  },
  "luminance": 0.51762
}

Semantic roles & 50–950 ramp

primary
#B4C938
secondary
#3B3174
accent
#47E15D
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B4C938

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

Preview Lab → · Contrast checker → · Palette generator →

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