#B2B727#B2B727

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

Color values

HEX#B2B727
RGBrgb(178, 183, 39)
HSLhsl(62, 65%, 44%)
HSVhsv(62, 79%, 72%)
CMYKcmyk(2.7%, 0%, 78.7%, 28.2%)
CIE-LABlab(71.88, -18.17, 66.26)
CIE-LCHlch(71.88, 68.71, 105.33°)
OKLaboklab(75.14% -0.0573 0.1442)
OKLCHoklch(75.14% 0.155 111.7)
XYZxyz(35.6610, 43.4794, 8.4329)
Luminance0.4348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B727 #2C27B7
analogous
#B77427 #B2B727 #6AB727
triadic
#B2B727 #27B2B7 #B727B2
tetradic
#B2B727 #27B774 #2C27B7 #B7276A
square
#B2B727 #27B774 #2C27B7 #B7276A
split-complementary
#B2B727 #276AB7 #7427B7
monochromatic
#505211 #81851C #B2B727 #D2D744 #DEE276

Accessibility & contrast

On white

2.17
#B2B727 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B727#FFFFFF#000000##000000
##B2B7271.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AE00
Deuteranopia (green-blind)
#C6B234
Tritanopia (blue-blind)
#BFAB9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b2b727;
/* rgb */ color: rgb(178, 183, 39);
/* oklch */ color: oklch(75.1% 0.155 111.7);
Tailwind
colors: {
  custom: {
    50: '#cdcc6e',
    500: '#b2b727',
    950: '#000000',
  },
}
SCSS
$custom: #b2b727;
$custom-light: #cdcc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b727",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 39
  },
  "hsl": {
    "h": 62.083,
    "s": 64.865,
    "l": 43.529
  },
  "oklch": {
    "l": 0.75136,
    "c": 0.15514,
    "h": 111.7
  },
  "luminance": 0.43478
}

Semantic roles & 50–950 ramp

primary
#B2B727
secondary
#7370C9
accent
#40E846
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B727

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

Preview Lab → · Contrast checker → · Palette generator →

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