#B7C151#B7C151

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

Color values

HEX#B7C151
RGBrgb(183, 193, 81)
HSLhsl(65, 47%, 54%)
HSVhsv(65, 58%, 76%)
CMYKcmyk(5.2%, 0%, 58%, 24.3%)
CIE-LABlab(75.33, -18.70, 53.96)
CIE-LCHlch(75.33, 57.11, 109.11°)
OKLaboklab(78.09% -0.0551 0.1247)
OKLCHoklch(78.09% 0.136 113.8)
XYZxyz(40.0845, 48.8020, 15.0911)
Luminance0.4880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C151 #5B51C1
analogous
#C19351 #B7C151 #7FC151
triadic
#B7C151 #51B7C1 #C151B7
tetradic
#B7C151 #51C193 #5B51C1 #C1517F
square
#B7C151 #51C193 #5B51C1 #C1517F
split-complementary
#B7C151 #517FC1 #9351C1
monochromatic
#697028 #949D38 #B7C151 #CAD17E #DCE1AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7C151#FFFFFF#000000##000000
##B7C1511.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)
#CEB845
Deuteranopia (green-blind)
#CEBB58
Tritanopia (blue-blind)
#C2B7A9
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b7c151;
/* rgb */ color: rgb(183, 193, 81);
/* oklch */ color: oklch(78.1% 0.136 113.8);
Tailwind
colors: {
  custom: {
    50: '#cfd386',
    500: '#b7c151',
    950: '#000000',
  },
}
SCSS
$custom: #b7c151;
$custom-light: #cfd386;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c151",
  "rgb": {
    "r": 183,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 65.357,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.78085,
    "c": 0.13628,
    "h": 113.8
  },
  "luminance": 0.48801
}

Semantic roles & 50–950 ramp

primary
#B7C151
secondary
#A39FCF
accent
#51D75D
background
#FDFCF8
surface
#FAF9F0
border
#D3D2CB
text
#14140B
muted
#83827C

Preview Lab

Preview with #B7C151

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

Preview Lab → · Contrast checker → · Palette generator →

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