#B9B438#B9B438

#B9B438 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.2% C 0.141 H 107.1°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#B9B438
RGBrgb(185, 180, 56)
HSLhsl(58, 54%, 47%)
HSVhsv(58, 70%, 73%)
CMYKcmyk(0%, 2.7%, 69.7%, 27.5%)
CIE-LABlab(71.72, -12.88, 60.60)
CIE-LCHlch(71.72, 61.95, 102.00°)
OKLaboklab(75.18% -0.0414 0.1349)
OKLCHoklch(75.18% 0.141 107.1)
XYZxyz(37.0440, 43.2436, 10.1361)
Luminance0.4324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B438 #383DB9
analogous
#B97338 #B9B438 #7EB938
triadic
#B9B438 #38B9B4 #B438B9
tetradic
#B9B438 #38B973 #383DB9 #B9387E
square
#B9B438 #38B973 #383DB9 #B9387E
split-complementary
#B9B438 #387EB9 #7338B9
monochromatic
#5B591C #8A862A #B9B438 #CFCA5F #DDDA8E

Accessibility & contrast

On white

2.18
#B9B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#B9B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B438
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B438#FFFFFF#000000##000000
##B9B4381.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C6B241
Tritanopia (blue-blind)
#C6A89B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b9b438;
/* rgb */ color: rgb(185, 180, 56);
/* oklch */ color: oklch(75.2% 0.141 107.1);
Tailwind
colors: {
  custom: {
    50: '#d1ca76',
    500: '#b9b438',
    950: '#000000',
  },
}
SCSS
$custom: #b9b438;
$custom-light: #d1ca76;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b438",
  "rgb": {
    "r": 185,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 57.674,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.75178,
    "c": 0.14116,
    "h": 107.1
  },
  "luminance": 0.43242
}

Semantic roles & 50–950 ramp

primary
#B9B438
secondary
#8588C8
accent
#51DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B9B438

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

Preview Lab → · Contrast checker → · Palette generator →

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