#B7C240#B7C240

#B7C240 is a light, vivid yellow. Relative luminance 0.490; OKLCH L 78.1% C 0.151 H 114.0°. Best body text is #000000 at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#B7C240
RGBrgb(183, 194, 64)
HSLhsl(65, 52%, 51%)
HSVhsv(65, 67%, 76%)
CMYKcmyk(5.7%, 0%, 67%, 23.9%)
CIE-LABlab(75.46, -20.34, 61.23)
CIE-LCHlch(75.46, 64.52, 108.38°)
OKLaboklab(78.15% -0.0614 0.1377)
OKLCHoklch(78.15% 0.151 114)
XYZxyz(39.7467, 49.0218, 12.2178)
Luminance0.4902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C240 #4B40C2
analogous
#C28C40 #B7C240 #76C240
triadic
#B7C240 #40B7C2 #C240B7
tetradic
#B7C240 #40C28C #4B40C2 #C24076
square
#B7C240 #40C28C #4B40C2 #C24076
split-complementary
#B7C240 #4076C2 #8C40C2
monochromatic
#616721 #8D9530 #B7C240 #C8D16E #DAE09D

Accessibility & contrast

On white

1.94
#B7C240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.80
#B7C240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C240
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C240#FFFFFF#000000##000000
##B7C2401.001.9410.8010.80
#FFFFFF1.941.0021.0021.00
#00000010.8021.001.001.00
##00000010.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#CFBB49
Tritanopia (blue-blind)
#C3B7A8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #b7c240;
/* rgb */ color: rgb(183, 194, 64);
/* oklch */ color: oklch(78.1% 0.151 114.0);
Tailwind
colors: {
  custom: {
    50: '#d0d47c',
    500: '#b7c240',
    950: '#000000',
  },
}
SCSS
$custom: #b7c240;
$custom-light: #d0d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c240",
  "rgb": {
    "r": 183,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 65.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.78149,
    "c": 0.15074,
    "h": 114
  },
  "luminance": 0.49021
}

Semantic roles & 50–950 ramp

primary
#B7C240
secondary
#9792CC
accent
#4DDB59
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B7C240

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

Preview Lab → · Contrast checker → · Palette generator →

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