#B2B242#B2B242

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

Color values

HEX#B2B242
RGBrgb(178, 178, 66)
HSLhsl(60, 46%, 48%)
HSVhsv(60, 63%, 70%)
CMYKcmyk(0%, 0%, 62.9%, 30.2%)
CIE-LABlab(70.66, -14.27, 55.31)
CIE-LCHlch(70.66, 57.12, 104.46°)
OKLaboklab(74.22% -0.0439 0.1256)
OKLCHoklch(74.22% 0.133 109.2)
XYZxyz(35.2650, 41.7001, 11.3445)
Luminance0.4170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B242 #4242B2
analogous
#B27A42 #B2B242 #7AB242
triadic
#B2B242 #42B2B2 #B242B2
tetradic
#B2B242 #42B27A #4242B2 #B2427A
square
#B2B242 #42B27A #4242B2 #B2427A
split-complementary
#B2B242 #427AB2 #7A42B2
monochromatic
#595921 #858531 #B2B242 #C8C86A #D8D896

Accessibility & contrast

On white

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

On black

9.34
#B2B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B242
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B242#FFFFFF#000000##000000
##B2B2421.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2b242;
/* rgb */ color: rgb(178, 178, 66);
/* oklch */ color: oklch(74.2% 0.133 109.2);
Tailwind
colors: {
  custom: {
    50: '#ccc87c',
    500: '#b2b242',
    950: '#000000',
  },
}
SCSS
$custom: #b2b242;
$custom-light: #ccc87c;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b242",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.74218,
    "c": 0.13305,
    "h": 109.2
  },
  "luminance": 0.41699
}

Semantic roles & 50–950 ramp

primary
#B2B242
secondary
#8C8CC4
accent
#52D652
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B242

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

Preview Lab → · Contrast checker → · Palette generator →

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