#B2A340#B2A340

#B2A340 is a light, moderate yellow. Relative luminance 0.360; OKLCH L 70.9% C 0.120 H 100.7°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#B2A340
RGBrgb(178, 163, 64)
HSLhsl(52, 47%, 47%)
HSVhsv(52, 64%, 70%)
CMYKcmyk(0%, 8.4%, 64%, 30.2%)
CIE-LABlab(66.54, -6.57, 51.79)
CIE-LCHlch(66.54, 52.20, 97.23°)
OKLaboklab(70.93% -0.0222 0.1179)
OKLCHoklch(70.93% 0.12 100.7)
XYZxyz(32.3840, 36.0309, 10.0983)
Luminance0.3603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A340 #404FB2
analogous
#B26A40 #B2A340 #88B240
triadic
#B2A340 #40B2A3 #A340B2
tetradic
#B2A340 #40B26A #404FB2 #B24088
square
#B2A340 #40B26A #404FB2 #B24088
split-complementary
#B2A340 #4088B2 #6A40B2
monochromatic
#585120 #857A30 #B2A340 #C8BB67 #D8CF94

Accessibility & contrast

On white

2.56
#B2A340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#B2A340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A340
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A340#FFFFFF#000000##000000
##B2A3401.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E34
Deuteranopia (green-blind)
#B6A445
Tritanopia (blue-blind)
#BF988E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b2a340;
/* rgb */ color: rgb(178, 163, 64);
/* oklch */ color: oklch(70.9% 0.120 100.7);
Tailwind
colors: {
  custom: {
    50: '#ccbe79',
    500: '#b2a340',
    950: '#000000',
  },
}
SCSS
$custom: #b2a340;
$custom-light: #ccbe79;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a340",
  "rgb": {
    "r": 178,
    "g": 163,
    "b": 64
  },
  "hsl": {
    "h": 52.105,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.70934,
    "c": 0.11993,
    "h": 100.7
  },
  "luminance": 0.3603
}

Semantic roles & 50–950 ramp

primary
#B2A340
secondary
#8A91C4
accent
#63D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A340

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

Preview Lab → · Contrast checker → · Palette generator →

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