#B2B730#B2B730

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

Color values

HEX#B2B730
RGBrgb(178, 183, 48)
HSLhsl(62, 58%, 45%)
HSVhsv(62, 74%, 72%)
CMYKcmyk(2.7%, 0%, 73.8%, 28.2%)
CIE-LABlab(71.92, -17.80, 63.47)
CIE-LCHlch(71.92, 65.92, 105.66°)
OKLaboklab(75.19% -0.0555 0.1398)
OKLCHoklch(75.19% 0.15 111.7)
XYZxyz(35.8283, 43.5463, 9.3137)
Luminance0.4355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B730 #3530B7
analogous
#B77830 #B2B730 #6FB730
triadic
#B2B730 #30B2B7 #B730B2
tetradic
#B2B730 #30B778 #3530B7 #B7306F
square
#B2B730 #30B778 #3530B7 #B7306F
split-complementary
#B2B730 #306FB7 #7830B7
monochromatic
#545617 #838723 #B2B730 #CDD252 #DBDE83

Accessibility & contrast

On white

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

On black

9.71
#B2B730 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B730
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B730#FFFFFF#000000##000000
##B2B7301.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF13
Deuteranopia (green-blind)
#C6B23B
Tritanopia (blue-blind)
#BEAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b2b730;
/* rgb */ color: rgb(178, 183, 48);
/* oklch */ color: oklch(75.2% 0.150 111.7);
Tailwind
colors: {
  custom: {
    50: '#cdcc73',
    500: '#b2b730',
    950: '#000000',
  },
}
SCSS
$custom: #b2b730;
$custom-light: #cdcc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b730",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 48
  },
  "hsl": {
    "h": 62.222,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.75186,
    "c": 0.15047,
    "h": 111.7
  },
  "luminance": 0.43545
}

Semantic roles & 50–950 ramp

primary
#B2B730
secondary
#7E7BC8
accent
#46E24C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B2B730

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

Preview Lab → · Contrast checker → · Palette generator →

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