#B2A540#B2A540

#B2A540 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.4% C 0.122 H 102.0°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#B2A540
RGBrgb(178, 165, 64)
HSLhsl(53, 47%, 47%)
HSVhsv(53, 64%, 70%)
CMYKcmyk(0%, 7.3%, 64%, 30.2%)
CIE-LABlab(67.09, -7.63, 52.37)
CIE-LCHlch(67.09, 52.92, 98.29°)
OKLaboklab(71.36% -0.0253 0.1191)
OKLCHoklch(71.36% 0.122 102)
XYZxyz(32.7419, 36.7467, 10.2176)
Luminance0.3674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A540 #404DB2
analogous
#B26C40 #B2A540 #86B240
triadic
#B2A540 #40B2A5 #A540B2
tetradic
#B2A540 #40B26C #404DB2 #B24086
square
#B2A540 #40B26C #404DB2 #B24086
split-complementary
#B2A540 #4086B2 #6C40B2
monochromatic
#585220 #857B30 #B2A540 #C8BD67 #D8D194

Accessibility & contrast

On white

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

On black

8.35
#B2A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A540
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A540#FFFFFF#000000##000000
##B2A5401.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A034
Deuteranopia (green-blind)
#B7A646
Tritanopia (blue-blind)
#BF9A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b2a540;
/* rgb */ color: rgb(178, 165, 64);
/* oklch */ color: oklch(71.4% 0.122 102.0);
Tailwind
colors: {
  custom: {
    50: '#ccbf7a',
    500: '#b2a540',
    950: '#000000',
  },
}
SCSS
$custom: #b2a540;
$custom-light: #ccbf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a540",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 53.158,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71365,
    "c": 0.12174,
    "h": 102
  },
  "luminance": 0.36745
}

Semantic roles & 50–950 ramp

primary
#B2A540
secondary
#8A90C4
accent
#60D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A540

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

Preview Lab → · Contrast checker → · Palette generator →

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