#B2B540#B2B540

#B2B540 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.9% C 0.138 H 110.7°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#B2B540
RGBrgb(178, 181, 64)
HSLhsl(62, 48%, 48%)
HSVhsv(62, 65%, 71%)
CMYKcmyk(1.7%, 0%, 64.6%, 29%)
CIE-LABlab(71.48, -15.92, 57.00)
CIE-LCHlch(71.48, 59.18, 105.61°)
OKLaboklab(74.86% -0.0487 0.1289)
OKLCHoklch(74.86% 0.138 110.7)
XYZxyz(35.8105, 42.8838, 11.2405)
Luminance0.4288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B540 #4340B5
analogous
#B57D40 #B2B540 #78B540
triadic
#B2B540 #40B2B5 #B540B2
tetradic
#B2B540 #40B57D #4340B5 #B54078
square
#B2B540 #40B57D #4340B5 #B54078
split-complementary
#B2B540 #4078B5 #7D40B5
monochromatic
#595B20 #868830 #B2B540 #C7CA68 #D8DA96

Accessibility & contrast

On white

2.19
#B2B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#B2B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B540
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B540#FFFFFF#000000##000000
##B2B5401.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD30
Deuteranopia (green-blind)
#C4B148
Tritanopia (blue-blind)
#BEAA9D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b2b540;
/* rgb */ color: rgb(178, 181, 64);
/* oklch */ color: oklch(74.9% 0.138 110.7);
Tailwind
colors: {
  custom: {
    50: '#cccb7b',
    500: '#b2b540',
    950: '#000000',
  },
}
SCSS
$custom: #b2b540;
$custom-light: #cccb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b540",
  "rgb": {
    "r": 178,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 61.538,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.74862,
    "c": 0.13778,
    "h": 110.7
  },
  "luminance": 0.42883
}

Semantic roles & 50–950 ramp

primary
#B2B540
secondary
#8D8BC5
accent
#50D754
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B540

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

Preview Lab → · Contrast checker → · Palette generator →

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