#B1C040#B1C040

#B1C040 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.2% C 0.150 H 115.8°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#B1C040
RGBrgb(177, 192, 64)
HSLhsl(67, 50%, 50%)
HSVhsv(67, 67%, 75%)
CMYKcmyk(7.8%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.46, -21.85, 60.06)
CIE-LCHlch(74.46, 63.91, 110.00°)
OKLaboklab(77.23% -0.0653 0.1353)
OKLCHoklch(77.23% 0.15 115.8)
XYZxyz(37.9074, 47.4171, 12.0050)
Luminance0.4742 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1C040 #4F40C0
analogous
#C08F40 #B1C040 #71C040
triadic
#B1C040 #40B1C0 #C040B1
tetradic
#B1C040 #40C08F #4F40C0 #C04071
square
#B1C040 #40C08F #4F40C0 #C04071
split-complementary
#B1C040 #4071C0 #8F40C0
monochromatic
#5D6421 #879230 #B1C040 #C4CF6E #D7DE9C

Accessibility & contrast

On white

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

On black

10.48
#B1C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1C040
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1C040#FFFFFF#000000##000000
##B1C0401.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#CCB849
Tritanopia (blue-blind)
#BCB5A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #b1c040;
/* rgb */ color: rgb(177, 192, 64);
/* oklch */ color: oklch(77.2% 0.150 115.8);
Tailwind
colors: {
  custom: {
    50: '#cbd27c',
    500: '#b1c040',
    950: '#000000',
  },
}
SCSS
$custom: #b1c040;
$custom-light: #cbd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1c040",
  "rgb": {
    "r": 177,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 67.031,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77228,
    "c": 0.15027,
    "h": 115.8
  },
  "luminance": 0.47417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B1C040

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

Preview Lab → · Contrast checker → · Palette generator →

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