#B5B248#B5B248

#B5B248 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.5% C 0.128 H 107.6°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#B5B248
RGBrgb(181, 178, 72)
HSLhsl(58, 43%, 50%)
HSVhsv(58, 60%, 71%)
CMYKcmyk(0%, 1.7%, 60.2%, 29%)
CIE-LABlab(70.96, -12.58, 53.10)
CIE-LCHlch(70.96, 54.57, 103.33°)
OKLaboklab(74.53% -0.0386 0.1217)
OKLCHoklch(74.53% 0.128 107.6)
XYZxyz(36.1473, 42.1335, 12.3581)
Luminance0.4213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B248 #484BB5
analogous
#B57C48 #B5B248 #81B548
triadic
#B5B248 #48B5B2 #B248B5
tetradic
#B5B248 #48B57C #484BB5 #B54881
square
#B5B248 #48B57C #484BB5 #B54881
split-complementary
#B5B248 #4881B5 #7C48B5
monochromatic
#5D5C25 #898737 #B5B248 #C7C573 #D9D79F

Accessibility & contrast

On white

2.23
#B5B248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#B5B248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B248
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B248#FFFFFF#000000##000000
##B5B2481.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB3C
Deuteranopia (green-blind)
#C2B04E
Tritanopia (blue-blind)
#C1A79B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b5b248;
/* rgb */ color: rgb(181, 178, 72);
/* oklch */ color: oklch(74.5% 0.128 107.6);
Tailwind
colors: {
  custom: {
    50: '#cec87f',
    500: '#b5b248',
    950: '#000000',
  },
}
SCSS
$custom: #b5b248;
$custom-light: #cec87f;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b248",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 58.349,
    "s": 43.083,
    "l": 49.608
  },
  "oklch": {
    "l": 0.74534,
    "c": 0.1277,
    "h": 107.6
  },
  "luminance": 0.42132
}

Semantic roles & 50–950 ramp

primary
#B5B248
secondary
#9395C5
accent
#58D355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C

Preview Lab

Preview with #B5B248

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

Preview Lab → · Contrast checker → · Palette generator →

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