#B2B538#B2B538

#B2B538 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.8% C 0.143 H 110.8°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#B2B538
RGBrgb(178, 181, 56)
HSLhsl(61, 53%, 46%)
HSVhsv(61, 69%, 71%)
CMYKcmyk(1.7%, 0%, 69.1%, 29%)
CIE-LABlab(71.42, -16.39, 60.11)
CIE-LCHlch(71.42, 62.30, 105.25°)
OKLaboklab(74.8% -0.0509 0.1341)
OKLCHoklch(74.8% 0.143 110.8)
XYZxyz(35.5989, 42.7992, 10.1264)
Luminance0.4280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B538 #3B38B5
analogous
#B57A38 #B2B538 #74B538
triadic
#B2B538 #38B2B5 #B538B2
tetradic
#B2B538 #38B57A #3B38B5 #B53874
square
#B2B538 #38B57A #3B38B5 #B53874
split-complementary
#B2B538 #3874B5 #7A38B5
monochromatic
#56581B #84862A #B2B538 #CACD5D #DADB8C

Accessibility & contrast

On white

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

On black

9.56
#B2B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B538
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B538#FFFFFF#000000##000000
##B2B5381.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C4B141
Tritanopia (blue-blind)
#BEAA9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b2b538;
/* rgb */ color: rgb(178, 181, 56);
/* oklch */ color: oklch(74.8% 0.143 110.8);
Tailwind
colors: {
  custom: {
    50: '#cccb76',
    500: '#b2b538',
    950: '#000000',
  },
}
SCSS
$custom: #b2b538;
$custom-light: #cccb76;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b538",
  "rgb": {
    "r": 178,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 61.44,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74797,
    "c": 0.14345,
    "h": 110.8
  },
  "luminance": 0.42798
}

Semantic roles & 50–950 ramp

primary
#B2B538
secondary
#8583C6
accent
#4CDC4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B538

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

Preview Lab → · Contrast checker → · Palette generator →

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