#B2A52D#B2A52D

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

Color values

HEX#B2A52D
RGBrgb(178, 165, 45)
HSLhsl(54, 60%, 44%)
HSVhsv(54, 75%, 70%)
CMYKcmyk(0%, 7.3%, 74.7%, 30.2%)
CIE-LABlab(66.95, -8.66, 59.82)
CIE-LCHlch(66.95, 60.44, 98.24°)
OKLaboklab(71.21% -0.0302 0.1315)
OKLCHoklch(71.21% 0.135 102.9)
XYZxyz(32.2903, 36.5661, 7.8392)
Luminance0.3656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A52D #2D3AB2
analogous
#B2622D #B2A52D #7CB22D
triadic
#B2A52D #2DB2A5 #A52DB2
tetradic
#B2A52D #2DB262 #2D3AB2 #B22D7C
square
#B2A52D #2DB262 #2D3AB2 #B22D7C
split-complementary
#B2A52D #2D7CB2 #622DB2
monochromatic
#504A14 #817821 #B2A52D #D1C44B #DED47C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A52D#FFFFFF#000000##000000
##B2A52D1.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)
#B4A016
Deuteranopia (green-blind)
#B8A636
Tritanopia (blue-blind)
#C0998E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b2a52d;
/* rgb */ color: rgb(178, 165, 45);
/* oklch */ color: oklch(71.2% 0.135 102.9);
Tailwind
colors: {
  custom: {
    50: '#cdbf6f',
    500: '#b2a52d',
    950: '#000000',
  },
}
SCSS
$custom: #b2a52d;
$custom-light: #cdbf6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a52d",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 45
  },
  "hsl": {
    "h": 54.135,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71213,
    "c": 0.13497,
    "h": 102.9
  },
  "luminance": 0.36565
}

Semantic roles & 50–950 ramp

primary
#B2A52D
secondary
#757DC6
accent
#54E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A52D

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

Preview Lab → · Contrast checker → · Palette generator →

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