#B5B138#B5B138

#B5B138 is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.2% C 0.139 H 107.5°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#B5B138
RGBrgb(181, 177, 56)
HSLhsl(58, 53%, 46%)
HSVhsv(58, 69%, 71%)
CMYKcmyk(0%, 2.2%, 69.1%, 29%)
CIE-LABlab(70.56, -13.06, 59.34)
CIE-LCHlch(70.56, 60.76, 102.41°)
OKLaboklab(74.17% -0.0417 0.1324)
OKLCHoklch(74.17% 0.139 107.5)
XYZxyz(35.4933, 41.5547, 9.8918)
Luminance0.4155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B138 #383CB5
analogous
#B57338 #B5B138 #7BB538
triadic
#B5B138 #38B5B1 #B138B5
tetradic
#B5B138 #38B573 #383CB5 #B5387B
square
#B5B138 #38B573 #383CB5 #B5387B
split-complementary
#B5B138 #387BB5 #7338B5
monochromatic
#58561B #86832A #B5B138 #CDC95D #DBD98C

Accessibility & contrast

On white

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

On black

9.31
#B5B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B138
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B138#FFFFFF#000000##000000
##B5B1381.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA25
Deuteranopia (green-blind)
#C2AF40
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b138;
/* rgb */ color: rgb(181, 177, 56);
/* oklch */ color: oklch(74.2% 0.139 107.5);
Tailwind
colors: {
  custom: {
    50: '#cec876',
    500: '#b5b138',
    950: '#000000',
  },
}
SCSS
$custom: #b5b138;
$custom-light: #cec876;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b138",
  "rgb": {
    "r": 181,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 58.08,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74174,
    "c": 0.13882,
    "h": 107.5
  },
  "luminance": 0.41554
}

Semantic roles & 50–950 ramp

primary
#B5B138
secondary
#8385C6
accent
#50DC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B138

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

Preview Lab → · Contrast checker → · Palette generator →

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