#B2B751#B2B751

#B2B751 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.5% C 0.126 H 111.6°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#B2B751
RGBrgb(178, 183, 81)
HSLhsl(63, 41%, 52%)
HSVhsv(63, 56%, 72%)
CMYKcmyk(2.7%, 0%, 55.7%, 28.2%)
CIE-LABlab(72.18, -15.73, 50.32)
CIE-LCHlch(72.18, 52.72, 107.36°)
OKLaboklab(75.47% -0.0464 0.117)
OKLCHoklch(75.47% 0.126 111.6)
XYZxyz(36.7797, 43.9268, 14.3242)
Luminance0.4393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B751 #5651B7
analogous
#B78951 #B2B751 #7FB751
triadic
#B2B751 #51B2B7 #B751B2
tetradic
#B2B751 #51B789 #5651B7 #B7517F
square
#B2B751 #51B789 #5651B7 #B7517F
split-complementary
#B2B751 #517FB7 #8951B7
monochromatic
#616429 #8B8F3B #B2B751 #C5C97C #D8DBA8

Accessibility & contrast

On white

2.15
#B2B751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#B2B751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B751
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B751#FFFFFF#000000##000000
##B2B7511.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B046
Deuteranopia (green-blind)
#C4B257
Tritanopia (blue-blind)
#BDADA1
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b2b751;
/* rgb */ color: rgb(178, 183, 81);
/* oklch */ color: oklch(75.5% 0.126 111.6);
Tailwind
colors: {
  custom: {
    50: '#cbcc85',
    500: '#b2b751',
    950: '#000000',
  },
}
SCSS
$custom: #b2b751;
$custom-light: #cbcc85;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b751",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 81
  },
  "hsl": {
    "h": 62.941,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.75472,
    "c": 0.12582,
    "h": 111.6
  },
  "luminance": 0.43926
}

Semantic roles & 50–950 ramp

primary
#B2B751
secondary
#9E9CC8
accent
#57D15D
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130B
muted
#82827C

Preview Lab

Preview with #B2B751

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

Preview Lab → · Contrast checker → · Palette generator →

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