#B2A642#B2A642

#B2A642 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.6% C 0.121 H 102.5°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#B2A642
RGBrgb(178, 166, 66)
HSLhsl(54, 46%, 48%)
HSVhsv(54, 63%, 70%)
CMYKcmyk(0%, 6.7%, 62.9%, 30.2%)
CIE-LABlab(67.38, -8.03, 51.80)
CIE-LCHlch(67.38, 52.41, 98.81°)
OKLaboklab(71.6% -0.0262 0.1182)
OKLCHoklch(71.6% 0.121 102.5)
XYZxyz(32.9809, 37.1320, 10.5831)
Luminance0.3713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A642 #424EB2
analogous
#B26E42 #B2A642 #86B242
triadic
#B2A642 #42B2A6 #A642B2
tetradic
#B2A642 #42B26E #424EB2 #B24286
square
#B2A642 #42B26E #424EB2 #B24286
split-complementary
#B2A642 #4286B2 #6E42B2
monochromatic
#595321 #857C31 #B2A642 #C8BE6A #D8D196

Accessibility & contrast

On white

2.49
#B2A642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#B2A642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A642
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A642#FFFFFF#000000##000000
##B2A6421.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A136
Deuteranopia (green-blind)
#B8A647
Tritanopia (blue-blind)
#BF9B91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b2a642;
/* rgb */ color: rgb(178, 166, 66);
/* oklch */ color: oklch(71.6% 0.121 102.5);
Tailwind
colors: {
  custom: {
    50: '#ccc07b',
    500: '#b2a642',
    950: '#000000',
  },
}
SCSS
$custom: #b2a642;
$custom-light: #ccc07b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a642",
  "rgb": {
    "r": 178,
    "g": 166,
    "b": 66
  },
  "hsl": {
    "h": 53.571,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.716,
    "c": 0.12103,
    "h": 102.5
  },
  "luminance": 0.37131
}

Semantic roles & 50–950 ramp

primary
#B2A642
secondary
#8C92C4
accent
#60D652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #B2A642

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

Preview Lab → · Contrast checker → · Palette generator →

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