#B2A52F#B2A52F

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

Color values

HEX#B2A52F
RGBrgb(178, 165, 47)
HSLhsl(54, 58%, 44%)
HSVhsv(54, 74%, 70%)
CMYKcmyk(0%, 7.3%, 73.6%, 30.2%)
CIE-LABlab(66.96, -8.57, 59.11)
CIE-LCHlch(66.96, 59.73, 98.25°)
OKLaboklab(71.23% -0.0298 0.1304)
OKLCHoklch(71.23% 0.134 102.9)
XYZxyz(32.3298, 36.5819, 8.0468)
Luminance0.3658 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A52F #2F3CB2
analogous
#B2642F #B2A52F #7EB22F
triadic
#B2A52F #2FB2A5 #A52FB2
tetradic
#B2A52F #2FB264 #2F3CB2 #B22F7E
square
#B2A52F #2FB264 #2F3CB2 #B22F7E
split-complementary
#B2A52F #2F7EB2 #642FB2
monochromatic
#514B15 #827822 #B2A52F #D0C34E #DDD47E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A52F#FFFFFF#000000##000000
##B2A52F1.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2a52f;
/* rgb */ color: rgb(178, 165, 47);
/* oklch */ color: oklch(71.2% 0.134 102.9);
Tailwind
colors: {
  custom: {
    50: '#cdbf70',
    500: '#b2a52f',
    950: '#000000',
  },
}
SCSS
$custom: #b2a52f;
$custom-light: #cdbf70;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a52f",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 54.046,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.71226,
    "c": 0.13377,
    "h": 102.9
  },
  "luminance": 0.3658
}

Semantic roles & 50–950 ramp

primary
#B2A52F
secondary
#777FC6
accent
#56E146
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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