#B5BA38#B5BA38

#B5BA38 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.2% C 0.148 H 111.6°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#B5BA38
RGBrgb(181, 186, 56)
HSLhsl(62, 54%, 47%)
HSVhsv(62, 70%, 73%)
CMYKcmyk(2.7%, 0%, 69.9%, 27.1%)
CIE-LABlab(73.04, -17.64, 61.79)
CIE-LCHlch(73.04, 64.26, 105.93°)
OKLaboklab(76.15% -0.0545 0.1376)
OKLCHoklch(76.15% 0.148 111.6)
XYZxyz(37.3300, 45.2280, 10.5040)
Luminance0.4523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5BA38 #3D38BA
analogous
#BA7E38 #B5BA38 #74BA38
triadic
#B5BA38 #38B5BA #BA38B5
tetradic
#B5BA38 #38BA7E #3D38BA #BA3874
square
#B5BA38 #38BA7E #3D38BA #BA3874
split-complementary
#B5BA38 #3874BA #7E38BA
monochromatic
#595C1C #878B2A #B5BA38 #CBCF60 #DADD8F

Accessibility & contrast

On white

2.09
#B5BA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#B5BA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5BA38
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5BA38#FFFFFF#000000##000000
##B5BA381.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5ba38;
/* rgb */ color: rgb(181, 186, 56);
/* oklch */ color: oklch(76.2% 0.148 111.6);
Tailwind
colors: {
  custom: {
    50: '#cece77',
    500: '#b5ba38',
    950: '#000000',
  },
}
SCSS
$custom: #b5ba38;
$custom-light: #cece77;
$custom-dark: #000000;
JSON
{
  "hex": "#b5ba38",
  "rgb": {
    "r": 181,
    "g": 186,
    "b": 56
  },
  "hsl": {
    "h": 62.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.76154,
    "c": 0.148,
    "h": 111.6
  },
  "luminance": 0.45227
}

Semantic roles & 50–950 ramp

primary
#B5BA38
secondary
#8886C8
accent
#4BDD50
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B5BA38

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

Preview Lab → · Contrast checker → · Palette generator →

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