#B4BA38#B4BA38

#B4BA38 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.1% C 0.148 H 112.1°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#B4BA38
RGBrgb(180, 186, 56)
HSLhsl(63, 54%, 47%)
HSVhsv(63, 70%, 73%)
CMYKcmyk(3.2%, 0%, 69.9%, 27.1%)
CIE-LABlab(72.96, -18.06, 61.69)
CIE-LCHlch(72.96, 64.28, 106.32°)
OKLaboklab(76.07% -0.0557 0.1374)
OKLCHoklch(76.07% 0.148 112.1)
XYZxyz(37.0963, 45.1075, 10.4931)
Luminance0.4511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4BA38 #3E38BA
analogous
#BA7F38 #B4BA38 #73BA38
triadic
#B4BA38 #38B4BA #BA38B4
tetradic
#B4BA38 #38BA7F #3E38BA #BA3873
square
#B4BA38 #38BA7F #3E38BA #BA3873
split-complementary
#B4BA38 #3873BA #7F38BA
monochromatic
#595C1C #868B2A #B4BA38 #CACF60 #DADD8F

Accessibility & contrast

On white

2.10
#B4BA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#B4BA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4BA38
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4BA38#FFFFFF#000000##000000
##B4BA381.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4ba38;
/* rgb */ color: rgb(180, 186, 56);
/* oklch */ color: oklch(76.1% 0.148 112.1);
Tailwind
colors: {
  custom: {
    50: '#cece77',
    500: '#b4ba38',
    950: '#000000',
  },
}
SCSS
$custom: #b4ba38;
$custom-light: #cece77;
$custom-dark: #000000;
JSON
{
  "hex": "#b4ba38",
  "rgb": {
    "r": 180,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 62.769,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.76071,
    "c": 0.14825,
    "h": 112.1
  },
  "luminance": 0.45107
}

Semantic roles & 50–950 ramp

primary
#B4BA38
secondary
#8986C8
accent
#4BDD51
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B4BA38

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

Preview Lab → · Contrast checker → · Palette generator →

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