#B4B138#B4B138

#B4B138 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.1% C 0.139 H 108.0°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#B4B138
RGBrgb(180, 177, 56)
HSLhsl(59, 53%, 46%)
HSVhsv(59, 69%, 71%)
CMYKcmyk(0%, 1.7%, 68.9%, 29.4%)
CIE-LABlab(70.48, -13.49, 59.23)
CIE-LCHlch(70.48, 60.74, 102.83°)
OKLaboklab(74.09% -0.0428 0.1322)
OKLCHoklch(74.09% 0.139 108)
XYZxyz(35.2596, 41.4342, 9.8809)
Luminance0.4143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4B138 #383BB4
analogous
#B47338 #B4B138 #79B438
triadic
#B4B138 #38B4B1 #B138B4
tetradic
#B4B138 #38B473 #383BB4 #B43879
square
#B4B138 #38B473 #383BB4 #B43879
split-complementary
#B4B138 #3879B4 #7338B4
monochromatic
#57551B #858329 #B4B138 #CDCA5D #DBD98B

Accessibility & contrast

On white

2.26
#B4B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#B4B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4B138
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4B138#FFFFFF#000000##000000
##B4B1381.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA25
Deuteranopia (green-blind)
#C2AE40
Tritanopia (blue-blind)
#C1A699
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b4b138;
/* rgb */ color: rgb(180, 177, 56);
/* oklch */ color: oklch(74.1% 0.139 108.0);
Tailwind
colors: {
  custom: {
    50: '#cec876',
    500: '#b4b138',
    950: '#000000',
  },
}
SCSS
$custom: #b4b138;
$custom-light: #cec876;
$custom-dark: #000000;
JSON
{
  "hex": "#b4b138",
  "rgb": {
    "r": 180,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 58.548,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74087,
    "c": 0.13898,
    "h": 108
  },
  "luminance": 0.41433
}

Semantic roles & 50–950 ramp

primary
#B4B138
secondary
#8284C5
accent
#4FDC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4B138

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

Preview Lab → · Contrast checker → · Palette generator →

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