#B2A52A#B2A52A

#B2A52A is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.2% C 0.137 H 103.1°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#B2A52A
RGBrgb(178, 165, 42)
HSLhsl(54, 62%, 43%)
HSVhsv(54, 76%, 70%)
CMYKcmyk(0%, 7.3%, 76.4%, 30.2%)
CIE-LABlab(66.93, -8.79, 60.84)
CIE-LCHlch(66.93, 61.47, 98.22°)
OKLaboklab(71.19% -0.0309 0.1331)
OKLCHoklch(71.19% 0.137 103.1)
XYZxyz(32.2346, 36.5438, 7.5458)
Luminance0.3654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A52A #2A37B2
analogous
#B2612A #B2A52A #7BB22A
triadic
#B2A52A #2AB2A5 #A52AB2
tetradic
#B2A52A #2AB261 #2A37B2 #B22A7B
square
#B2A52A #2AB261 #2A37B2 #B22A7B
split-complementary
#B2A52A #2A7BB2 #612AB2
monochromatic
#4F4913 #80771E #B2A52A #D3C646 #DFD577

Accessibility & contrast

On white

2.53
#B2A52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#B2A52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A52A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A52A#FFFFFF#000000##000000
##B2A52A1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A00E
Deuteranopia (green-blind)
#B8A633
Tritanopia (blue-blind)
#C0998E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b2a52a;
/* rgb */ color: rgb(178, 165, 42);
/* oklch */ color: oklch(71.2% 0.137 103.1);
Tailwind
colors: {
  custom: {
    50: '#cdbf6e',
    500: '#b2a52a',
    950: '#000000',
  },
}
SCSS
$custom: #b2a52a;
$custom-light: #cdbf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a52a",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 54.265,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71194,
    "c": 0.13667,
    "h": 103.1
  },
  "luminance": 0.36542
}

Semantic roles & 50–950 ramp

primary
#B2A52A
secondary
#7179C7
accent
#52E543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A52A

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

Preview Lab → · Contrast checker → · Palette generator →

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