#B2B340#B2B340

#B2B340 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.4% C 0.136 H 109.8°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#B2B340
RGBrgb(178, 179, 64)
HSLhsl(61, 47%, 48%)
HSVhsv(61, 64%, 70%)
CMYKcmyk(0.6%, 0%, 64.2%, 29.8%)
CIE-LABlab(70.92, -14.91, 56.42)
CIE-LCHlch(70.92, 58.36, 104.80°)
OKLaboklab(74.42% -0.0459 0.1277)
OKLCHoklch(74.42% 0.136 109.8)
XYZxyz(35.4067, 42.0763, 11.1059)
Luminance0.4208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B340 #4140B3
analogous
#B37B40 #B2B340 #78B340
triadic
#B2B340 #40B2B3 #B340B2
tetradic
#B2B340 #40B37B #4140B3 #B34078
square
#B2B340 #40B37B #4140B3 #B34078
split-complementary
#B2B340 #4078B3 #7B40B3
monochromatic
#585920 #858630 #B2B340 #C8C967 #D8D994

Accessibility & contrast

On white

2.23
#B2B340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#B2B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B340
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B340#FFFFFF#000000##000000
##B2B3401.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC31
Deuteranopia (green-blind)
#C2AF47
Tritanopia (blue-blind)
#BEA89B
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b2b340;
/* rgb */ color: rgb(178, 179, 64);
/* oklch */ color: oklch(74.4% 0.136 109.8);
Tailwind
colors: {
  custom: {
    50: '#ccc97b',
    500: '#b2b340',
    950: '#000000',
  },
}
SCSS
$custom: #b2b340;
$custom-light: #ccc97b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b340",
  "rgb": {
    "r": 178,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 60.522,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.7442,
    "c": 0.13565,
    "h": 109.8
  },
  "luminance": 0.42075
}

Semantic roles & 50–950 ramp

primary
#B2B340
secondary
#8B8AC4
accent
#51D752
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #B2B340

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

Preview Lab → · Contrast checker → · Palette generator →

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