#B2A229#B2A229

#B2A229 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.5% C 0.135 H 101.4°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#B2A229
RGBrgb(178, 162, 41)
HSLhsl(53, 63%, 43%)
HSVhsv(53, 77%, 70%)
CMYKcmyk(0%, 9%, 77%, 30.2%)
CIE-LABlab(66.11, -7.25, 60.42)
CIE-LCHlch(66.11, 60.85, 96.84°)
OKLaboklab(70.54% -0.0266 0.132)
OKLCHoklch(70.54% 0.135 101.4)
XYZxyz(31.6822, 35.4672, 7.2744)
Luminance0.3547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A229 #2939B2
analogous
#B25E29 #B2A229 #7DB229
triadic
#B2A229 #29B2A2 #A229B2
tetradic
#B2A229 #29B25E #2939B2 #B2297D
square
#B2A229 #29B25E #2939B2 #B2297D
split-complementary
#B2A229 #297DB2 #5E29B2
monochromatic
#4F4712 #80751E #B2A229 #D4C344 #DFD376

Accessibility & contrast

On white

2.59
#B2A229 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#B2A229 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A229
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A229#FFFFFF#000000##000000
##B2A2291.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D0E
Deuteranopia (green-blind)
#B6A332
Tritanopia (blue-blind)
#C0968B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a229;
/* rgb */ color: rgb(178, 162, 41);
/* oklch */ color: oklch(70.5% 0.135 101.4);
Tailwind
colors: {
  custom: {
    50: '#cdbd6d',
    500: '#b2a229',
    950: '#000000',
  },
}
SCSS
$custom: #b2a229;
$custom-light: #cdbd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a229",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 41
  },
  "hsl": {
    "h": 52.993,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.70539,
    "c": 0.1347,
    "h": 101.4
  },
  "luminance": 0.35466
}

Semantic roles & 50–950 ramp

primary
#B2A229
secondary
#707AC7
accent
#55E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B2A229

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

Preview Lab → · Contrast checker → · Palette generator →

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