#B2B738#B2B738

#B2B738 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.2% C 0.146 H 111.6°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#B2B738
RGBrgb(178, 183, 56)
HSLhsl(62, 53%, 47%)
HSVhsv(62, 69%, 72%)
CMYKcmyk(2.7%, 0%, 69.4%, 28.2%)
CIE-LABlab(71.97, -17.40, 60.66)
CIE-LCHlch(71.97, 63.10, 106.01°)
OKLaboklab(75.24% -0.0537 0.1353)
OKLCHoklch(75.24% 0.146 111.6)
XYZxyz(36.0085, 43.6184, 10.2630)
Luminance0.4362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B738 #3D38B7
analogous
#B77D38 #B2B738 #73B738
triadic
#B2B738 #38B2B7 #B738B2
tetradic
#B2B738 #38B77D #3D38B7 #B73873
square
#B2B738 #38B77D #3D38B7 #B73873
split-complementary
#B2B738 #3873B7 #7D38B7
monochromatic
#57591B #84882A #B2B738 #C9CE5E #D9DC8D

Accessibility & contrast

On white

2.16
#B2B738 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#B2B738 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B738
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B738#FFFFFF#000000##000000
##B2B7381.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF23
Deuteranopia (green-blind)
#C6B241
Tritanopia (blue-blind)
#BEAC9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b2b738;
/* rgb */ color: rgb(178, 183, 56);
/* oklch */ color: oklch(75.2% 0.146 111.6);
Tailwind
colors: {
  custom: {
    50: '#cccc77',
    500: '#b2b738',
    950: '#000000',
  },
}
SCSS
$custom: #b2b738;
$custom-light: #cccc77;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b738",
  "rgb": {
    "r": 178,
    "g": 183,
    "b": 56
  },
  "hsl": {
    "h": 62.362,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.7524,
    "c": 0.14556,
    "h": 111.6
  },
  "luminance": 0.43617
}

Semantic roles & 50–950 ramp

primary
#B2B738
secondary
#8784C7
accent
#4BDD51
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2B738

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

Preview Lab → · Contrast checker → · Palette generator →

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