#B2A323#B2A323

#B2A323 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.139 H 102.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#B2A323
RGBrgb(178, 163, 35)
HSLhsl(54, 67%, 42%)
HSVhsv(54, 80%, 70%)
CMYKcmyk(0%, 8.4%, 80.3%, 30.2%)
CIE-LABlab(66.35, -8.00, 62.55)
CIE-LCHlch(66.35, 63.06, 97.29°)
OKLaboklab(70.72% -0.0293 0.1354)
OKLCHoklch(70.72% 0.139 102.2)
XYZxyz(31.7622, 35.7822, 6.8234)
Luminance0.3578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A323 #2332B2
analogous
#B25B23 #B2A323 #7AB223
triadic
#B2A323 #23B2A3 #A323B2
tetradic
#B2A323 #23B25B #2332B2 #B2237A
square
#B2A323 #23B25B #2332B2 #B2237A
split-complementary
#B2A323 #237AB2 #5B23B2
monochromatic
#4C450F #7F7419 #B2A323 #D8C83A #E2D66D

Accessibility & contrast

On white

2.57
#B2A323 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#B2A323 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A323
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A323#FFFFFF#000000##000000
##B2A3231.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B7A42D
Tritanopia (blue-blind)
#C0978C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a323;
/* rgb */ color: rgb(178, 163, 35);
/* oklch */ color: oklch(70.7% 0.139 102.2);
Tailwind
colors: {
  custom: {
    50: '#cdbd6a',
    500: '#b2a323',
    950: '#000000',
  },
}
SCSS
$custom: #b2a323;
$custom-light: #cdbd6a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a323",
  "rgb": {
    "r": 178,
    "g": 163,
    "b": 35
  },
  "hsl": {
    "h": 53.706,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.70722,
    "c": 0.13855,
    "h": 102.2
  },
  "luminance": 0.35781
}

Semantic roles & 50–950 ramp

primary
#B2A323
secondary
#6872C9
accent
#50EA3E
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B2A323

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

Preview Lab → · Contrast checker → · Palette generator →

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