#B7C840#B7C840

#B7C840 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.5% C 0.157 H 116.3°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#B7C840
RGBrgb(183, 200, 64)
HSLhsl(68, 55%, 52%)
HSVhsv(68, 68%, 78%)
CMYKcmyk(8.5%, 0%, 68%, 21.6%)
CIE-LABlab(77.13, -23.29, 62.92)
CIE-LCHlch(77.13, 67.09, 110.31°)
OKLaboklab(79.48% -0.0696 0.1412)
OKLCHoklch(79.48% 0.157 116.3)
XYZxyz(41.1091, 51.7466, 12.6720)
Luminance0.5175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C840 #5140C8
analogous
#C89540 #B7C840 #73C840
triadic
#B7C840 #40B7C8 #C840B7
tetradic
#B7C840 #40C895 #5140C8 #C84073
square
#B7C840 #40C895 #5140C8 #C84073
split-complementary
#B7C840 #4073C8 #9540C8
monochromatic
#646E20 #8F9D2D #B7C840 #C9D670 #DBE39F

Accessibility & contrast

On white

1.85
#B7C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#B7C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C840
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C840#FFFFFF#000000##000000
##B7C8401.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2B
Deuteranopia (green-blind)
#D4BF4A
Tritanopia (blue-blind)
#C2BDAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b7c840;
/* rgb */ color: rgb(183, 200, 64);
/* oklch */ color: oklch(79.5% 0.157 116.3);
Tailwind
colors: {
  custom: {
    50: '#d0d87d',
    500: '#b7c840',
    950: '#000000',
  },
}
SCSS
$custom: #b7c840;
$custom-light: #d0d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c840",
  "rgb": {
    "r": 183,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 67.5,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79484,
    "c": 0.15745,
    "h": 116.3
  },
  "luminance": 0.51746
}

Semantic roles & 50–950 ramp

primary
#B7C840
secondary
#3D3577
accent
#49DF5C
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B7C840

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

Preview Lab → · Contrast checker → · Palette generator →

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