#B7C842#B7C842

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

Color values

HEX#B7C842
RGBrgb(183, 200, 66)
HSLhsl(68, 55%, 52%)
HSVhsv(68, 67%, 78%)
CMYKcmyk(8.5%, 0%, 67%, 21.6%)
CIE-LABlab(77.14, -23.17, 62.17)
CIE-LCHlch(77.14, 66.35, 110.44°)
OKLaboklab(79.5% -0.0691 0.1399)
OKLCHoklch(79.5% 0.156 116.3)
XYZxyz(41.1670, 51.7697, 12.9771)
Luminance0.5177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C842 #5342C8
analogous
#C89642 #B7C842 #74C842
triadic
#B7C842 #42B7C8 #C842B7
tetradic
#B7C842 #42C896 #5342C8 #C84274
square
#B7C842 #42C896 #5342C8 #C84274
split-complementary
#B7C842 #4274C8 #9642C8
monochromatic
#656F20 #909F2E #B7C842 #C9D671 #DBE4A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7C842#FFFFFF#000000##000000
##B7C8421.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)
#D5BE2E
Deuteranopia (green-blind)
#D4BF4C
Tritanopia (blue-blind)
#C2BDAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b7c842;
/* rgb */ color: rgb(183, 200, 66);
/* oklch */ color: oklch(79.5% 0.156 116.3);
Tailwind
colors: {
  custom: {
    50: '#d0d87e',
    500: '#b7c842',
    950: '#000000',
  },
}
SCSS
$custom: #b7c842;
$custom-light: #d0d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c842",
  "rgb": {
    "r": 183,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 67.612,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.795,
    "c": 0.15608,
    "h": 116.3
  },
  "luminance": 0.51769
}

Semantic roles & 50–950 ramp

primary
#B7C842
secondary
#3E3679
accent
#4ADE5C
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B7C842

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

Preview Lab → · Contrast checker → · Palette generator →

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