#B7B040#B7B040

#B7B040 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.132 H 105.7°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#B7B040
RGBrgb(183, 176, 64)
HSLhsl(56, 48%, 48%)
HSVhsv(56, 65%, 72%)
CMYKcmyk(0%, 3.8%, 65%, 28.2%)
CIE-LABlab(70.52, -11.22, 56.13)
CIE-LCHlch(70.52, 57.24, 101.31°)
OKLaboklab(74.2% -0.0358 0.1269)
OKLCHoklch(74.2% 0.132 105.7)
XYZxyz(35.9805, 41.4894, 10.9624)
Luminance0.4149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B040 #4047B7
analogous
#B77440 #B7B040 #82B740
triadic
#B7B040 #40B7B0 #B040B7
tetradic
#B7B040 #40B774 #4047B7 #B74082
square
#B7B040 #40B774 #4047B7 #B74082
split-complementary
#B7B040 #4082B7 #7440B7
monochromatic
#5C5920 #8A8430 #B7B040 #CBC569 #DBD797

Accessibility & contrast

On white

2.26
#B7B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#B7B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B040
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B040#FFFFFF#000000##000000
##B7B0401.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#C1AF47
Tritanopia (blue-blind)
#C4A599
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b7b040;
/* rgb */ color: rgb(183, 176, 64);
/* oklch */ color: oklch(74.2% 0.132 105.7);
Tailwind
colors: {
  custom: {
    50: '#d0c77a',
    500: '#b7b040',
    950: '#000000',
  },
}
SCSS
$custom: #b7b040;
$custom-light: #d0c77a;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b040",
  "rgb": {
    "r": 183,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 56.471,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.74198,
    "c": 0.13184,
    "h": 105.7
  },
  "luminance": 0.41488
}

Semantic roles & 50–950 ramp

primary
#B7B040
secondary
#8D90C6
accent
#58D850
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #B7B040

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

Preview Lab → · Contrast checker → · Palette generator →

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