#B2A72B#B2A72B

#B2A72B is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.138 H 104.1°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#B2A72B
RGBrgb(178, 167, 43)
HSLhsl(55, 61%, 43%)
HSVhsv(55, 76%, 70%)
CMYKcmyk(0%, 6.2%, 75.8%, 30.2%)
CIE-LABlab(67.49, -9.80, 61.01)
CIE-LCHlch(67.49, 61.79, 99.12°)
OKLaboklab(71.64% -0.0336 0.1337)
OKLCHoklch(71.64% 0.138 104.1)
XYZxyz(32.6163, 37.2782, 7.7624)
Luminance0.3728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A72B #2B36B2
analogous
#B2632B #B2A72B #79B22B
triadic
#B2A72B #2BB2A7 #A72BB2
tetradic
#B2A72B #2BB263 #2B36B2 #B22B79
square
#B2A72B #2BB263 #2B36B2 #B22B79
split-complementary
#B2A72B #2B79B2 #632BB2
monochromatic
#4F4B13 #81791F #B2A72B #D3C748 #DFD679

Accessibility & contrast

On white

2.48
#B2A72B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#B2A72B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A72B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A72B#FFFFFF#000000##000000
##B2A72B1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A110
Deuteranopia (green-blind)
#BAA734
Tritanopia (blue-blind)
#C09B8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b2a72b;
/* rgb */ color: rgb(178, 167, 43);
/* oklch */ color: oklch(71.6% 0.138 104.1);
Tailwind
colors: {
  custom: {
    50: '#cdc06e',
    500: '#b2a72b',
    950: '#000000',
  },
}
SCSS
$custom: #b2a72b;
$custom-light: #cdc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a72b",
  "rgb": {
    "r": 178,
    "g": 167,
    "b": 43
  },
  "hsl": {
    "h": 55.111,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.71635,
    "c": 0.13785,
    "h": 104.1
  },
  "luminance": 0.37277
}

Semantic roles & 50–950 ramp

primary
#B2A72B
secondary
#7279C7
accent
#51E444
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A72B

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

Preview Lab → · Contrast checker → · Palette generator →

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