#B5C240#B5C240

#B5C240 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.0% C 0.151 H 114.9°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#B5C240
RGBrgb(181, 194, 64)
HSLhsl(66, 52%, 51%)
HSVhsv(66, 67%, 76%)
CMYKcmyk(6.7%, 0%, 67%, 23.9%)
CIE-LABlab(75.31, -21.18, 61.03)
CIE-LCHlch(75.31, 64.60, 109.14°)
OKLaboklab(77.99% -0.0636 0.1373)
OKLCHoklch(77.99% 0.151 114.9)
XYZxyz(39.2743, 48.7782, 12.1957)
Luminance0.4878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C240 #4D40C2
analogous
#C28E40 #B5C240 #74C240
triadic
#B5C240 #40B5C2 #C240B5
tetradic
#B5C240 #40C28E #4D40C2 #C24074
square
#B5C240 #40C28E #4D40C2 #C24074
split-complementary
#B5C240 #4074C2 #8E40C2
monochromatic
#606721 #8B9530 #B5C240 #C7D16E #D9E09D

Accessibility & contrast

On white

1.95
#B5C240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.76
#B5C240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C240
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C240#FFFFFF#000000##000000
##B5C2401.001.9510.7610.76
#FFFFFF1.951.0021.0021.00
#00000010.7621.001.001.00
##00000010.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B82D
Deuteranopia (green-blind)
#CFBB49
Tritanopia (blue-blind)
#C0B7A8
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b5c240;
/* rgb */ color: rgb(181, 194, 64);
/* oklch */ color: oklch(78.0% 0.151 114.9);
Tailwind
colors: {
  custom: {
    50: '#ced47c',
    500: '#b5c240',
    950: '#000000',
  },
}
SCSS
$custom: #b5c240;
$custom-light: #ced47c;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c240",
  "rgb": {
    "r": 181,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 66,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.7799,
    "c": 0.15132,
    "h": 114.9
  },
  "luminance": 0.48777
}

Semantic roles & 50–950 ramp

primary
#B5C240
secondary
#9892CC
accent
#4DDB5B
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B5C240

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

Preview Lab → · Contrast checker → · Palette generator →

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