#B7C040#B7C040

#B7C040 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.7% C 0.149 H 113.3°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#B7C040
RGBrgb(183, 192, 64)
HSLhsl(64, 50%, 50%)
HSVhsv(64, 67%, 75%)
CMYKcmyk(4.7%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.91, -19.35, 60.67)
CIE-LCHlch(74.91, 63.68, 107.69°)
OKLaboklab(77.71% -0.0586 0.1365)
OKLCHoklch(77.71% 0.149 113.3)
XYZxyz(39.3046, 48.1375, 12.0705)
Luminance0.4814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C040 #4940C0
analogous
#C08940 #B7C040 #77C040
triadic
#B7C040 #40B7C0 #C040B7
tetradic
#B7C040 #40C089 #4940C0 #C04077
square
#B7C040 #40C089 #4940C0 #C04077
split-complementary
#B7C040 #4077C0 #8940C0
monochromatic
#606421 #8C9230 #B7C040 #C8CF6E #DADE9C

Accessibility & contrast

On white

1.98
#B7C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.63
#B7C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C040
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C040#FFFFFF#000000##000000
##B7C0401.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB72D
Deuteranopia (green-blind)
#CEBA49
Tritanopia (blue-blind)
#C3B5A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b7c040;
/* rgb */ color: rgb(183, 192, 64);
/* oklch */ color: oklch(77.7% 0.149 113.3);
Tailwind
colors: {
  custom: {
    50: '#d0d27c',
    500: '#b7c040',
    950: '#000000',
  },
}
SCSS
$custom: #b7c040;
$custom-light: #d0d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c040",
  "rgb": {
    "r": 183,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 64.219,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77706,
    "c": 0.14854,
    "h": 113.3
  },
  "luminance": 0.48137
}

Semantic roles & 50–950 ramp

primary
#B7C040
secondary
#9591CB
accent
#4EDA58
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B7C040

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

Preview Lab → · Contrast checker → · Palette generator →

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