#B9B538#B9B538

#B9B538 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.4% C 0.142 H 107.5°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#B9B538
RGBrgb(185, 181, 56)
HSLhsl(58, 54%, 47%)
HSVhsv(58, 70%, 73%)
CMYKcmyk(0%, 2.2%, 69.7%, 27.5%)
CIE-LABlab(71.99, -13.39, 60.87)
CIE-LCHlch(71.99, 62.32, 102.41°)
OKLaboklab(75.4% -0.0428 0.1355)
OKLCHoklch(75.4% 0.142 107.5)
XYZxyz(37.2467, 43.6488, 10.2037)
Luminance0.4365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B538 #383CB9
analogous
#B97538 #B9B538 #7CB938
triadic
#B9B538 #38B9B5 #B538B9
tetradic
#B9B538 #38B975 #383CB9 #B9387C
square
#B9B538 #38B975 #383CB9 #B9387C
split-complementary
#B9B538 #387CB9 #7538B9
monochromatic
#5B591C #8A872A #B9B538 #CFCB5F #DDDB8E

Accessibility & contrast

On white

2.16
#B9B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#B9B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B538
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B538#FFFFFF#000000##000000
##B9B5381.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE24
Deuteranopia (green-blind)
#C6B341
Tritanopia (blue-blind)
#C6A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b538;
/* rgb */ color: rgb(185, 181, 56);
/* oklch */ color: oklch(75.4% 0.142 107.5);
Tailwind
colors: {
  custom: {
    50: '#d1ca77',
    500: '#b9b538',
    950: '#000000',
  },
}
SCSS
$custom: #b9b538;
$custom-light: #d1ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b538",
  "rgb": {
    "r": 185,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 58.14,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.75396,
    "c": 0.14213,
    "h": 107.5
  },
  "luminance": 0.43648
}

Semantic roles & 50–950 ramp

primary
#B9B538
secondary
#8587C8
accent
#4FDD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B9B538

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

Preview Lab → · Contrast checker → · Palette generator →

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