#B2B72D#B2B72D

#B2B72D is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.2% C 0.152 H 111.7°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#B2B72D
RGBrgb(178, 183, 45)
HSLhsl(62, 61%, 45%)
HSVhsv(62, 75%, 72%)
CMYKcmyk(2.7%, 0%, 75.4%, 28.2%)
CIE-LABlab(71.91, -17.93, 64.45)
CIE-LCHlch(71.91, 66.90, 105.54°)
OKLaboklab(75.17% -0.0562 0.1414)
OKLCHoklch(75.17% 0.152 111.7)
XYZxyz(35.7685, 43.5223, 8.9986)
Luminance0.4352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B72D #322DB7
analogous
#B7772D #B2B72D #6DB72D
triadic
#B2B72D #2DB2B7 #B72DB2
tetradic
#B2B72D #2DB777 #322DB7 #B72D6D
square
#B2B72D #2DB777 #322DB7 #B72D6D
split-complementary
#B2B72D #2D6DB7 #772DB7
monochromatic
#525515 #828621 #B2B72D #CFD34E #DCDF7F

Accessibility & contrast

On white

2.16
#B2B72D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#B2B72D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B72D
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B72D#FFFFFF#000000##000000
##B2B72D1.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE0A
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#BEAB9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b2b72d;
/* rgb */ color: rgb(178, 183, 45);
/* oklch */ color: oklch(75.2% 0.152 111.7);
Tailwind
colors: {
  custom: {
    50: '#cdcc71',
    500: '#b2b72d',
    950: '#000000',
  },
}
SCSS
$custom: #b2b72d;
$custom-light: #cdcc71;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b72d",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 45
  },
  "hsl": {
    "h": 62.174,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.75168,
    "c": 0.15212,
    "h": 111.7
  },
  "luminance": 0.43521
}

Semantic roles & 50–950 ramp

primary
#B2B72D
secondary
#7B78C8
accent
#44E44A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B72D

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

Preview Lab → · Contrast checker → · Palette generator →

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