#B2B438#B2B438

#B2B438 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.6% C 0.142 H 110.3°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#B2B438
RGBrgb(178, 180, 56)
HSLhsl(61, 53%, 46%)
HSVhsv(61, 69%, 71%)
CMYKcmyk(1.1%, 0%, 68.9%, 29.4%)
CIE-LABlab(71.14, -15.88, 59.83)
CIE-LCHlch(71.14, 61.90, 104.86°)
OKLaboklab(74.58% -0.0494 0.1336)
OKLCHoklch(74.58% 0.142 110.3)
XYZxyz(35.3963, 42.3940, 10.0589)
Luminance0.4239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B438 #3A38B4
analogous
#B47838 #B2B438 #74B438
triadic
#B2B438 #38B2B4 #B438B2
tetradic
#B2B438 #38B478 #3A38B4 #B43874
square
#B2B438 #38B478 #3A38B4 #B43874
split-complementary
#B2B438 #3874B4 #7838B4
monochromatic
#56571B #848529 #B2B438 #CBCD5D #DADB8B

Accessibility & contrast

On white

2.22
#B2B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#B2B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B438
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B438#FFFFFF#000000##000000
##B2B4381.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC24
Deuteranopia (green-blind)
#C3B041
Tritanopia (blue-blind)
#BEA99B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b438;
/* rgb */ color: rgb(178, 180, 56);
/* oklch */ color: oklch(74.6% 0.142 110.3);
Tailwind
colors: {
  custom: {
    50: '#ccca76',
    500: '#b2b438',
    950: '#000000',
  },
}
SCSS
$custom: #b2b438;
$custom-light: #ccca76;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b438",
  "rgb": {
    "r": 178,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 60.968,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74576,
    "c": 0.14241,
    "h": 110.3
  },
  "luminance": 0.42393
}

Semantic roles & 50–950 ramp

primary
#B2B438
secondary
#8382C5
accent
#4CDC4E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B438

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

Preview Lab → · Contrast checker → · Palette generator →

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