#B2B338#B2B338

#B2B338 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.4% C 0.141 H 109.9°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#B2B338
RGBrgb(178, 179, 56)
HSLhsl(60, 52%, 46%)
HSVhsv(60, 69%, 70%)
CMYKcmyk(0.6%, 0%, 68.7%, 29.8%)
CIE-LABlab(70.87, -15.37, 59.56)
CIE-LCHlch(70.87, 61.51, 104.47°)
OKLaboklab(74.36% -0.048 0.133)
OKLCHoklch(74.36% 0.141 109.9)
XYZxyz(35.1952, 41.9917, 9.9918)
Luminance0.4199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B338 #3938B3
analogous
#B37638 #B2B338 #74B338
triadic
#B2B338 #38B2B3 #B338B2
tetradic
#B2B338 #38B376 #3938B3 #B33874
square
#B2B338 #38B376 #3938B3 #B33874
split-complementary
#B2B338 #3874B3 #7638B3
monochromatic
#55561B #848429 #B2B338 #CBCC5C #DADB8B

Accessibility & contrast

On white

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

On black

9.40
#B2B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B338
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B338#FFFFFF#000000##000000
##B2B3381.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C2AF41
Tritanopia (blue-blind)
#BEA89B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b338;
/* rgb */ color: rgb(178, 179, 56);
/* oklch */ color: oklch(74.4% 0.141 109.9);
Tailwind
colors: {
  custom: {
    50: '#ccc976',
    500: '#b2b338',
    950: '#000000',
  },
}
SCSS
$custom: #b2b338;
$custom-light: #ccc976;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b338",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 60.488,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74355,
    "c": 0.14138,
    "h": 109.9
  },
  "luminance": 0.41991
}

Semantic roles & 50–950 ramp

primary
#B2B338
secondary
#8282C5
accent
#4CDC4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B338

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

Preview Lab → · Contrast checker → · Palette generator →

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