#B2B245#B2B245

#B2B245 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.2% C 0.131 H 109.2°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#B2B245
RGBrgb(178, 178, 69)
HSLhsl(60, 44%, 48%)
HSVhsv(60, 61%, 70%)
CMYKcmyk(0%, 0%, 61.2%, 30.2%)
CIE-LABlab(70.69, -14.07, 54.05)
CIE-LCHlch(70.69, 55.85, 104.59°)
OKLaboklab(74.25% -0.043 0.1234)
OKLCHoklch(74.25% 0.131 109.2)
XYZxyz(35.3557, 41.7364, 11.8226)
Luminance0.4173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B245 #4545B2
analogous
#B27B45 #B2B245 #7BB245
triadic
#B2B245 #45B2B2 #B245B2
tetradic
#B2B245 #45B27B #4545B2 #B2457B
square
#B2B245 #45B27B #4545B2 #B2457B
split-complementary
#B2B245 #457BB2 #7B45B2
monochromatic
#5A5A23 #868634 #B2B245 #C7C76E #D8D89A

Accessibility & contrast

On white

2.25
#B2B245 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#B2B245 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B245
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B245#FFFFFF#000000##000000
##B2B2451.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB38
Deuteranopia (green-blind)
#C1AF4C
Tritanopia (blue-blind)
#BEA79B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b245;
/* rgb */ color: rgb(178, 178, 69);
/* oklch */ color: oklch(74.2% 0.131 109.2);
Tailwind
colors: {
  custom: {
    50: '#ccc87e',
    500: '#b2b245',
    950: '#000000',
  },
}
SCSS
$custom: #b2b245;
$custom-light: #ccc87e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b245",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 69
  },
  "hsl": {
    "h": 60,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.74246,
    "c": 0.13065,
    "h": 109.2
  },
  "luminance": 0.41735
}

Semantic roles & 50–950 ramp

primary
#B2B245
secondary
#8F8FC4
accent
#54D454
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B245

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

Preview Lab → · Contrast checker → · Palette generator →

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