#B7B751#B7B751

#B7B751 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.9% C 0.125 H 109.0°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#B7B751
RGBrgb(183, 183, 81)
HSLhsl(60, 41%, 52%)
HSVhsv(60, 56%, 72%)
CMYKcmyk(0%, 0%, 55.7%, 28.2%)
CIE-LABlab(72.58, -13.64, 50.88)
CIE-LCHlch(72.58, 52.67, 105.01°)
OKLaboklab(75.89% -0.0407 0.1181)
OKLCHoklch(75.89% 0.125 109)
XYZxyz(37.9482, 44.5293, 14.3790)
Luminance0.4453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B751 #5151B7
analogous
#B78451 #B7B751 #84B751
triadic
#B7B751 #51B7B7 #B751B7
tetradic
#B7B751 #51B784 #5151B7 #B75184
square
#B7B751 #51B784 #5151B7 #B75184
split-complementary
#B7B751 #5184B7 #8451B7
monochromatic
#646429 #8F8F3B #B7B751 #C9C97C #DBDBA8

Accessibility & contrast

On white

2.12
#B7B751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#B7B751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B751
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B751#FFFFFF#000000##000000
##B7B7511.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B046
Deuteranopia (green-blind)
#C6B457
Tritanopia (blue-blind)
#C3ADA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b7b751;
/* rgb */ color: rgb(183, 183, 81);
/* oklch */ color: oklch(75.9% 0.125 109.0);
Tailwind
colors: {
  custom: {
    50: '#cfcc85',
    500: '#b7b751',
    950: '#000000',
  },
}
SCSS
$custom: #b7b751;
$custom-light: #cfcc85;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b751",
  "rgb": {
    "r": 183,
    "g": 183,
    "b": 81
  },
  "hsl": {
    "h": 60,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.75891,
    "c": 0.1249,
    "h": 109
  },
  "luminance": 0.44528
}

Semantic roles & 50–950 ramp

primary
#B7B751
secondary
#9C9CC8
accent
#57D157
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #B7B751

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

Preview Lab → · Contrast checker → · Palette generator →

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