#B2A828#B2A828

#B2A828 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.8% C 0.140 H 104.7°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#B2A828
RGBrgb(178, 168, 40)
HSLhsl(56, 63%, 43%)
HSVhsv(56, 78%, 70%)
CMYKcmyk(0%, 5.6%, 77.5%, 30.2%)
CIE-LABlab(67.74, -10.44, 62.24)
CIE-LCHlch(67.74, 63.11, 99.52°)
OKLaboklab(71.84% -0.0357 0.1357)
OKLCHoklch(71.84% 0.14 104.7)
XYZxyz(32.7472, 37.6248, 7.5444)
Luminance0.3762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A828 #2832B2
analogous
#B26328 #B2A828 #77B228
triadic
#B2A828 #28B2A8 #A828B2
tetradic
#B2A828 #28B263 #2832B2 #B22877
square
#B2A828 #28B263 #2832B2 #B22877
split-complementary
#B2A828 #2877B2 #6328B2
monochromatic
#4E4A12 #80791D #B2A828 #D5CA43 #E0D875

Accessibility & contrast

On white

2.46
#B2A828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#B2A828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A828
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A828#FFFFFF#000000##000000
##B2A8281.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A206
Deuteranopia (green-blind)
#BBA832
Tritanopia (blue-blind)
#C09C90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b2a828;
/* rgb */ color: rgb(178, 168, 40);
/* oklch */ color: oklch(71.8% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#cdc16d',
    500: '#b2a828',
    950: '#000000',
  },
}
SCSS
$custom: #b2a828;
$custom-light: #cdc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a828",
  "rgb": {
    "r": 178,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 55.652,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.71835,
    "c": 0.14036,
    "h": 104.7
  },
  "luminance": 0.37623
}

Semantic roles & 50–950 ramp

primary
#B2A828
secondary
#6F75C7
accent
#4DE641
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A828

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

Preview Lab → · Contrast checker → · Palette generator →

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