#B5C040#B5C040

#B5C040 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.5% C 0.149 H 114.1°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#B5C040
RGBrgb(181, 192, 64)
HSLhsl(65, 50%, 50%)
HSVhsv(65, 67%, 75%)
CMYKcmyk(5.7%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.76, -20.19, 60.46)
CIE-LCHlch(74.76, 63.74, 108.46°)
OKLaboklab(77.55% -0.0609 0.1361)
OKLCHoklch(77.55% 0.149 114.1)
XYZxyz(38.8321, 47.8939, 12.0483)
Luminance0.4789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C040 #4B40C0
analogous
#C08B40 #B5C040 #75C040
triadic
#B5C040 #40B5C0 #C040B5
tetradic
#B5C040 #40C08B #4B40C0 #C04075
square
#B5C040 #40C08B #4B40C0 #C04075
split-complementary
#B5C040 #4075C0 #8B40C0
monochromatic
#5F6421 #8A9230 #B5C040 #C7CF6E #D9DE9C

Accessibility & contrast

On white

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

On black

10.58
#B5C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C040
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C040#FFFFFF#000000##000000
##B5C0401.001.9910.5810.58
#FFFFFF1.991.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB72E
Deuteranopia (green-blind)
#CDB949
Tritanopia (blue-blind)
#C1B5A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b5c040;
/* rgb */ color: rgb(181, 192, 64);
/* oklch */ color: oklch(77.5% 0.149 114.1);
Tailwind
colors: {
  custom: {
    50: '#ced27c',
    500: '#b5c040',
    950: '#000000',
  },
}
SCSS
$custom: #b5c040;
$custom-light: #ced27c;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c040",
  "rgb": {
    "r": 181,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 65.156,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77545,
    "c": 0.14908,
    "h": 114.1
  },
  "luminance": 0.47893
}

Semantic roles & 50–950 ramp

primary
#B5C040
secondary
#9691CB
accent
#4EDA5A
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B5C040

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

Preview Lab → · Contrast checker → · Palette generator →

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