#B2A334#B2A334

#B2A334 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.8% C 0.129 H 101.5°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B2A334
RGBrgb(178, 163, 52)
HSLhsl(53, 55%, 45%)
HSVhsv(53, 71%, 70%)
CMYKcmyk(0%, 8.4%, 70.8%, 30.2%)
CIE-LABlab(66.45, -7.27, 56.71)
CIE-LCHlch(66.45, 57.18, 97.30°)
OKLaboklab(70.83% -0.0256 0.1263)
OKLCHoklch(70.83% 0.129 101.5)
XYZxyz(32.0785, 35.9087, 8.4895)
Luminance0.3591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A334 #3443B2
analogous
#B26434 #B2A334 #82B234
triadic
#B2A334 #34B2A3 #A334B2
tetradic
#B2A334 #34B264 #3443B2 #B23482
square
#B2A334 #34B264 #3443B2 #B23482
split-complementary
#B2A334 #3482B2 #6434B2
monochromatic
#534C18 #837826 #B2A334 #CEBF56 #DBD185

Accessibility & contrast

On white

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

On black

8.18
#B2A334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A334
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A334#FFFFFF#000000##000000
##B2A3341.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E23
Deuteranopia (green-blind)
#B7A43B
Tritanopia (blue-blind)
#C0978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b2a334;
/* rgb */ color: rgb(178, 163, 52);
/* oklch */ color: oklch(70.8% 0.129 101.5);
Tailwind
colors: {
  custom: {
    50: '#ccbd72',
    500: '#b2a334',
    950: '#000000',
  },
}
SCSS
$custom: #b2a334;
$custom-light: #ccbd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a334",
  "rgb": {
    "r": 178,
    "g": 163,
    "b": 52
  },
  "hsl": {
    "h": 52.857,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.7083,
    "c": 0.12884,
    "h": 101.5
  },
  "luminance": 0.35907
}

Semantic roles & 50–950 ramp

primary
#B2A334
secondary
#7D85C5
accent
#5BDE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A334

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

Preview Lab → · Contrast checker → · Palette generator →

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