#B2A534#B2A534

#B2A534 is a light, vivid yellow. Relative luminance 0.366; OKLCH L 71.3% C 0.131 H 102.6°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#B2A534
RGBrgb(178, 165, 52)
HSLhsl(54, 55%, 45%)
HSVhsv(54, 71%, 70%)
CMYKcmyk(0%, 7.3%, 70.8%, 30.2%)
CIE-LABlab(66.99, -8.32, 57.25)
CIE-LCHlch(66.99, 57.86, 98.27°)
OKLaboklab(71.26% -0.0286 0.1274)
OKLCHoklch(71.26% 0.131 102.6)
XYZxyz(32.4365, 36.6245, 8.6088)
Luminance0.3662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A534 #3441B2
analogous
#B26634 #B2A534 #80B234
triadic
#B2A534 #34B2A5 #A534B2
tetradic
#B2A534 #34B266 #3441B2 #B23480
square
#B2A534 #34B266 #3441B2 #B23480
split-complementary
#B2A534 #3480B2 #6634B2
monochromatic
#534D18 #837926 #B2A534 #CEC156 #DBD285

Accessibility & contrast

On white

2.52
#B2A534 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#B2A534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A534
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A534#FFFFFF#000000##000000
##B2A5341.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A022
Deuteranopia (green-blind)
#B8A63B
Tritanopia (blue-blind)
#BF998F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b2a534;
/* rgb */ color: rgb(178, 165, 52);
/* oklch */ color: oklch(71.3% 0.131 102.6);
Tailwind
colors: {
  custom: {
    50: '#ccbf73',
    500: '#b2a534',
    950: '#000000',
  },
}
SCSS
$custom: #b2a534;
$custom-light: #ccbf73;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a534",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 52
  },
  "hsl": {
    "h": 53.81,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71262,
    "c": 0.13058,
    "h": 102.6
  },
  "luminance": 0.36623
}

Semantic roles & 50–950 ramp

primary
#B2A534
secondary
#7D84C5
accent
#59DE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A534

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

Preview Lab → · Contrast checker → · Palette generator →

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