#B2A940#B2A940

#B2A940 is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.2% C 0.125 H 104.4°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#B2A940
RGBrgb(178, 169, 64)
HSLhsl(55, 47%, 47%)
HSVhsv(55, 64%, 70%)
CMYKcmyk(0%, 5.1%, 64%, 30.2%)
CIE-LABlab(68.18, -9.73, 53.53)
CIE-LCHlch(68.18, 54.41, 100.30°)
OKLaboklab(72.23% -0.0312 0.1215)
OKLCHoklch(72.23% 0.125 104.4)
XYZxyz(33.4747, 38.2123, 10.4619)
Luminance0.3821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A940 #4049B2
analogous
#B27040 #B2A940 #82B240
triadic
#B2A940 #40B2A9 #A940B2
tetradic
#B2A940 #40B270 #4049B2 #B24082
square
#B2A940 #40B270 #4049B2 #B24082
split-complementary
#B2A940 #4082B2 #7040B2
monochromatic
#585420 #857E30 #B2A940 #C8C167 #D8D394

Accessibility & contrast

On white

2.43
#B2A940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#B2A940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A940
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A940#FFFFFF#000000##000000
##B2A9401.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A333
Deuteranopia (green-blind)
#BAA846
Tritanopia (blue-blind)
#BF9E93
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b2a940;
/* rgb */ color: rgb(178, 169, 64);
/* oklch */ color: oklch(72.2% 0.125 104.4);
Tailwind
colors: {
  custom: {
    50: '#ccc27a',
    500: '#b2a940',
    950: '#000000',
  },
}
SCSS
$custom: #b2a940;
$custom-light: #ccc27a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a940",
  "rgb": {
    "r": 178,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 55.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.72231,
    "c": 0.12549,
    "h": 104.4
  },
  "luminance": 0.38211
}

Semantic roles & 50–950 ramp

primary
#B2A940
secondary
#8A8EC4
accent
#5CD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A940

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

Preview Lab → · Contrast checker → · Palette generator →

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