#B2BA38#B2BA38

#B2BA38 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 75.9% C 0.149 H 112.9°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#B2BA38
RGBrgb(178, 186, 56)
HSLhsl(64, 54%, 47%)
HSVhsv(64, 70%, 73%)
CMYKcmyk(4.3%, 0%, 69.9%, 27.1%)
CIE-LABlab(72.81, -18.91, 61.48)
CIE-LCHlch(72.81, 64.32, 107.10°)
OKLaboklab(75.91% -0.0579 0.137)
OKLCHoklch(75.91% 0.149 112.9)
XYZxyz(36.6339, 44.8691, 10.4714)
Luminance0.4487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2BA38 #4038BA
analogous
#BA8138 #B2BA38 #71BA38
triadic
#B2BA38 #38B2BA #BA38B2
tetradic
#B2BA38 #38BA81 #4038BA #BA3871
square
#B2BA38 #38BA81 #4038BA #BA3871
split-complementary
#B2BA38 #3871BA #8138BA
monochromatic
#585C1C #858B2A #B2BA38 #C8CF60 #D8DD8F

Accessibility & contrast

On white

2.11
#B2BA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.97
#B2BA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2BA38
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2BA38#FFFFFF#000000##000000
##B2BA381.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B122
Deuteranopia (green-blind)
#C8B442
Tritanopia (blue-blind)
#BEAFA0
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #b2ba38;
/* rgb */ color: rgb(178, 186, 56);
/* oklch */ color: oklch(75.9% 0.149 112.9);
Tailwind
colors: {
  custom: {
    50: '#ccce77',
    500: '#b2ba38',
    950: '#000000',
  },
}
SCSS
$custom: #b2ba38;
$custom-light: #ccce77;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ba38",
  "rgb": {
    "r": 178,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 63.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75907,
    "c": 0.14876,
    "h": 112.9
  },
  "luminance": 0.44868
}

Semantic roles & 50–950 ramp

primary
#B2BA38
secondary
#8A86C8
accent
#4BDD54
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B2BA38

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

Preview Lab → · Contrast checker → · Palette generator →

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