#B2B138#B2B138

#B2B138 is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.9% C 0.139 H 108.9°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#B2B138
RGBrgb(178, 177, 56)
HSLhsl(60, 52%, 46%)
HSVhsv(60, 69%, 70%)
CMYKcmyk(0%, 0.6%, 68.5%, 30.2%)
CIE-LABlab(70.31, -14.35, 59.01)
CIE-LCHlch(70.31, 60.73, 103.67°)
OKLaboklab(73.91% -0.0451 0.1318)
OKLCHoklch(73.91% 0.139 108.9)
XYZxyz(34.7973, 41.1958, 9.8592)
Luminance0.4119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B138 #3839B2
analogous
#B27438 #B2B138 #76B238
triadic
#B2B138 #38B2B1 #B138B2
tetradic
#B2B138 #38B274 #3839B2 #B23876
square
#B2B138 #38B274 #3839B2 #B23876
split-complementary
#B2B138 #3876B2 #7438B2
monochromatic
#55541B #838329 #B2B138 #CCCB5C #DADA8A

Accessibility & contrast

On white

2.27
#B2B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#B2B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B138
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B138#FFFFFF#000000##000000
##B2B1381.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA25
Deuteranopia (green-blind)
#C1AE40
Tritanopia (blue-blind)
#BFA699
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b138;
/* rgb */ color: rgb(178, 177, 56);
/* oklch */ color: oklch(73.9% 0.139 108.9);
Tailwind
colors: {
  custom: {
    50: '#ccc876',
    500: '#b2b138',
    950: '#000000',
  },
}
SCSS
$custom: #b2b138;
$custom-light: #ccc876;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b138",
  "rgb": {
    "r": 178,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 59.508,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.73914,
    "c": 0.13933,
    "h": 108.9
  },
  "luminance": 0.41195
}

Semantic roles & 50–950 ramp

primary
#B2B138
secondary
#8182C5
accent
#4DDC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B138

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

Preview Lab → · Contrast checker → · Palette generator →

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