#B2A234#B2A234

#B2A234 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.128 H 100.8°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#B2A234
RGBrgb(178, 162, 52)
HSLhsl(52, 55%, 45%)
HSVhsv(52, 71%, 70%)
CMYKcmyk(0%, 9%, 70.8%, 30.2%)
CIE-LABlab(66.18, -6.74, 56.44)
CIE-LCHlch(66.18, 56.84, 96.81°)
OKLaboklab(70.61% -0.0241 0.1257)
OKLCHoklch(70.61% 0.128 100.8)
XYZxyz(31.9017, 35.5550, 8.4306)
Luminance0.3555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A234 #3444B2
analogous
#B26334 #B2A234 #83B234
triadic
#B2A234 #34B2A2 #A234B2
tetradic
#B2A234 #34B263 #3444B2 #B23483
square
#B2A234 #34B263 #3444B2 #B23483
split-complementary
#B2A234 #3483B2 #6334B2
monochromatic
#534C18 #837726 #B2A234 #CEBE56 #DBD085

Accessibility & contrast

On white

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

On black

8.11
#B2A234 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A234
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A234#FFFFFF#000000##000000
##B2A2341.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D23
Deuteranopia (green-blind)
#B6A43B
Tritanopia (blue-blind)
#C0968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a234;
/* rgb */ color: rgb(178, 162, 52);
/* oklch */ color: oklch(70.6% 0.128 100.8);
Tailwind
colors: {
  custom: {
    50: '#ccbd72',
    500: '#b2a234',
    950: '#000000',
  },
}
SCSS
$custom: #b2a234;
$custom-light: #ccbd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a234",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 52
  },
  "hsl": {
    "h": 52.381,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70614,
    "c": 0.12799,
    "h": 100.8
  },
  "luminance": 0.35554
}

Semantic roles & 50–950 ramp

primary
#B2A234
secondary
#7D86C5
accent
#5DDE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A234

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

Preview Lab → · Contrast checker → · Palette generator →

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