#B2B42E#B2B42E

#B2B42E is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.149 H 110.4°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#B2B42E
RGBrgb(178, 180, 46)
HSLhsl(61, 59%, 44%)
HSVhsv(61, 74%, 71%)
CMYKcmyk(1.1%, 0%, 74.4%, 29.4%)
CIE-LABlab(71.08, -16.37, 63.35)
CIE-LCHlch(71.08, 65.43, 104.49°)
OKLaboklab(74.51% -0.0517 0.1392)
OKLCHoklch(74.51% 0.149 110.4)
XYZxyz(35.1757, 42.3057, 8.8971)
Luminance0.4230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B42E #302EB4
analogous
#B4732E #B2B42E #6FB42E
triadic
#B2B42E #2EB2B4 #B42EB2
tetradic
#B2B42E #2EB473 #302EB4 #B42E6F
square
#B2B42E #2EB473 #302EB4 #B42E6F
split-complementary
#B2B42E #2E6FB4 #732EB4
monochromatic
#525315 #828322 #B2B42E #D0D24E #DDDE7E

Accessibility & contrast

On white

2.22
#B2B42E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#B2B42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B42E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B42E#FFFFFF#000000##000000
##B2B42E1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC10
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#BFA89B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b42e;
/* rgb */ color: rgb(178, 180, 46);
/* oklch */ color: oklch(74.5% 0.149 110.4);
Tailwind
colors: {
  custom: {
    50: '#cdca71',
    500: '#b2b42e',
    950: '#000000',
  },
}
SCSS
$custom: #b2b42e;
$custom-light: #cdca71;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b42e",
  "rgb": {
    "r": 178,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 60.896,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74508,
    "c": 0.14854,
    "h": 110.4
  },
  "luminance": 0.42305
}

Semantic roles & 50–950 ramp

primary
#B2B42E
secondary
#7877C7
accent
#45E248
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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