#B9B248#B9B248

#B9B248 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.9% C 0.127 H 105.5°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#B9B248
RGBrgb(185, 178, 72)
HSLhsl(56, 45%, 50%)
HSVhsv(56, 61%, 73%)
CMYKcmyk(0%, 3.8%, 61.1%, 27.5%)
CIE-LABlab(71.30, -10.88, 53.57)
CIE-LCHlch(71.30, 54.66, 101.48°)
OKLaboklab(74.88% -0.034 0.1226)
OKLCHoklch(74.88% 0.127 105.5)
XYZxyz(37.0989, 42.6242, 12.4027)
Luminance0.4262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9B248 #484FB9
analogous
#B97948 #B9B248 #87B948
triadic
#B9B248 #48B9B2 #B248B9
tetradic
#B9B248 #48B979 #484FB9 #B94887
square
#B9B248 #48B979 #484FB9 #B94887
split-complementary
#B9B248 #4887B9 #7948B9
monochromatic
#615E25 #8E8836 #B9B248 #CAC574 #DBD7A1

Accessibility & contrast

On white

2.20
#B9B248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#B9B248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9B248
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9B248#FFFFFF#000000##000000
##B9B2481.002.209.529.52
#FFFFFF2.201.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AC3C
Deuteranopia (green-blind)
#C3B14E
Tritanopia (blue-blind)
#C6A79B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b9b248;
/* rgb */ color: rgb(185, 178, 72);
/* oklch */ color: oklch(74.9% 0.127 105.5);
Tailwind
colors: {
  custom: {
    50: '#d1c87f',
    500: '#b9b248',
    950: '#000000',
  },
}
SCSS
$custom: #b9b248;
$custom-light: #d1c87f;
$custom-dark: #000000;
JSON
{
  "hex": "#b9b248",
  "rgb": {
    "r": 185,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 56.283,
    "s": 44.664,
    "l": 50.392
  },
  "oklch": {
    "l": 0.74883,
    "c": 0.12724,
    "h": 105.5
  },
  "luminance": 0.42623
}

Semantic roles & 50–950 ramp

primary
#B9B248
secondary
#9598C8
accent
#5BD453
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C

Preview Lab

Preview with #B9B248

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

Preview Lab → · Contrast checker → · Palette generator →

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