#B2A837#B2A837

#B2A837 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.131 H 104.2°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#B2A837
RGBrgb(178, 168, 55)
HSLhsl(55, 53%, 46%)
HSVhsv(55, 69%, 70%)
CMYKcmyk(0%, 5.6%, 69.1%, 30.2%)
CIE-LABlab(67.83, -9.74, 56.91)
CIE-LCHlch(67.83, 57.74, 99.71°)
OKLaboklab(71.94% -0.0323 0.1272)
OKLCHoklch(71.94% 0.131 104.2)
XYZxyz(33.0537, 37.7474, 9.1586)
Luminance0.3775 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A837 #3741B2
analogous
#B26A37 #B2A837 #7EB237
triadic
#B2A837 #37B2A8 #A837B2
tetradic
#B2A837 #37B26A #3741B2 #B2377E
square
#B2A837 #37B26A #3741B2 #B2377E
split-complementary
#B2A837 #377EB2 #6A37B2
monochromatic
#54501A #837C29 #B2A837 #CCC35A #DBD489

Accessibility & contrast

On white

2.46
#B2A837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#B2A837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A837
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A837#FFFFFF#000000##000000
##B2A8371.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A226
Deuteranopia (green-blind)
#BAA83E
Tritanopia (blue-blind)
#BF9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b2a837;
/* rgb */ color: rgb(178, 168, 55);
/* oklch */ color: oklch(71.9% 0.131 104.2);
Tailwind
colors: {
  custom: {
    50: '#ccc175',
    500: '#b2a837',
    950: '#000000',
  },
}
SCSS
$custom: #b2a837;
$custom-light: #ccc175;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a837",
  "rgb": {
    "r": 178,
    "g": 168,
    "b": 55
  },
  "hsl": {
    "h": 55.122,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71937,
    "c": 0.13125,
    "h": 104.2
  },
  "luminance": 0.37746
}

Semantic roles & 50–950 ramp

primary
#B2A837
secondary
#8086C5
accent
#57DC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B2A837

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

Preview Lab → · Contrast checker → · Palette generator →

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