#B5B338#B5B338

#B5B338 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.6% C 0.141 H 108.5°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#B5B338
RGBrgb(181, 179, 56)
HSLhsl(59, 53%, 46%)
HSVhsv(59, 69%, 71%)
CMYKcmyk(0%, 1.1%, 69.1%, 29%)
CIE-LABlab(71.11, -14.08, 59.88)
CIE-LCHlch(71.11, 61.52, 103.23°)
OKLaboklab(74.61% -0.0446 0.1336)
OKLCHoklch(74.61% 0.141 108.5)
XYZxyz(35.8912, 42.3506, 10.0245)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B338 #383AB5
analogous
#B57538 #B5B338 #79B538
triadic
#B5B338 #38B5B3 #B338B5
tetradic
#B5B338 #38B575 #383AB5 #B53879
square
#B5B338 #38B575 #383AB5 #B53879
split-complementary
#B5B338 #3879B5 #7538B5
monochromatic
#58571B #86852A #B5B338 #CDCB5D #DBDA8C

Accessibility & contrast

On white

2.22
#B5B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#B5B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B338
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B338#FFFFFF#000000##000000
##B5B3381.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC25
Deuteranopia (green-blind)
#C3B041
Tritanopia (blue-blind)
#C2A89B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b5b338;
/* rgb */ color: rgb(181, 179, 56);
/* oklch */ color: oklch(74.6% 0.141 108.5);
Tailwind
colors: {
  custom: {
    50: '#cec976',
    500: '#b5b338',
    950: '#000000',
  },
}
SCSS
$custom: #b5b338;
$custom-light: #cec976;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b338",
  "rgb": {
    "r": 181,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 59.04,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74612,
    "c": 0.14081,
    "h": 108.5
  },
  "luminance": 0.42349
}

Semantic roles & 50–950 ramp

primary
#B5B338
secondary
#8384C6
accent
#4EDC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B338

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

Preview Lab → · Contrast checker → · Palette generator →

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