#B2B240#B2B240

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

Color values

HEX#B2B240
RGBrgb(178, 178, 64)
HSLhsl(60, 47%, 47%)
HSVhsv(60, 64%, 70%)
CMYKcmyk(0%, 0%, 64%, 30.2%)
CIE-LABlab(70.65, -14.39, 56.13)
CIE-LCHlch(70.65, 57.95, 104.38°)
OKLaboklab(74.2% -0.0444 0.1271)
OKLCHoklch(74.2% 0.135 109.3)
XYZxyz(35.2070, 41.6769, 11.0393)
Luminance0.4168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B240 #4040B2
analogous
#B27940 #B2B240 #79B240
triadic
#B2B240 #40B2B2 #B240B2
tetradic
#B2B240 #40B279 #4040B2 #B24079
square
#B2B240 #40B279 #4040B2 #B24079
split-complementary
#B2B240 #4079B2 #7940B2
monochromatic
#585820 #858530 #B2B240 #C8C867 #D8D894

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2B240#FFFFFF#000000##000000
##B2B2401.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)
#C0AB31
Deuteranopia (green-blind)
#C1AF47
Tritanopia (blue-blind)
#BEA79B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b2b240;
/* rgb */ color: rgb(178, 178, 64);
/* oklch */ color: oklch(74.2% 0.135 109.3);
Tailwind
colors: {
  custom: {
    50: '#ccc87b',
    500: '#b2b240',
    950: '#000000',
  },
}
SCSS
$custom: #b2b240;
$custom-light: #ccc87b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b240",
  "rgb": {
    "r": 178,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.742,
    "c": 0.13459,
    "h": 109.3
  },
  "luminance": 0.41676
}

Semantic roles & 50–950 ramp

primary
#B2B240
secondary
#8A8AC4
accent
#51D751
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B240

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

Preview Lab → · Contrast checker → · Palette generator →

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